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:
Eric Holk 2021-07-06 17:19:20 -07:00
parent 1e0db4cfed
commit 8b4f538320
3 changed files with 73 additions and 40 deletions

View file

@ -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