Unify lint tool and lint name checking
This shares a little more code between checking command line and attribute lint specifications.
This commit is contained in:
parent
1e0db4cfed
commit
8b4f538320
3 changed files with 73 additions and 40 deletions
|
|
@ -1,10 +1,10 @@
|
|||
error[E0602]: unknown lint: `unknown_tool::foo`
|
||||
error[E0602]: unknown lint tool: `unknown_tool`
|
||||
|
|
||||
= note: requested on the command line with `-A unknown_tool::foo`
|
||||
= note: requested on the command line with `-A foo`
|
||||
|
||||
error[E0602]: unknown lint: `unknown_tool::foo`
|
||||
error[E0602]: unknown lint tool: `unknown_tool`
|
||||
|
|
||||
= note: requested on the command line with `-A unknown_tool::foo`
|
||||
= note: requested on the command line with `-A foo`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue