1
Fork 0

Rollup merge of #86639 - eholk:lint-tool, r=petrochenkov

Support lint tool names in rustc command line options

When rustc is running without a lint tool such as clippy enabled, options for lints such as `clippy::foo` are meant to be ignored. This was already working for those specified by attrs, such as `#![allow(clippy::foo)]`, but this did not work for command line arguments like `-A clippy::foo`. This PR fixes that issue.

Note that we discovered this issue while discussing https://github.com/rust-lang/cargo/issues/5034.

Fixes #86628.
This commit is contained in:
Yuki Okushi 2021-07-08 10:44:29 +09:00 committed by GitHub
commit c2d3f5f772
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 123 additions and 34 deletions

View file

@ -497,3 +497,6 @@ fn register_internals(store: &mut LintStore) {
],
);
}
#[cfg(test)]
mod tests;