diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-01-05 09:52:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-05 09:52:49 +0900 |
| commit | cb433736da31da4924115bc44c8c95a2a6b7fc84 (patch) | |
| tree | 6bb8ee22f75bd6c104493484ce529aa42aa56978 /src/bootstrap | |
| parent | cda26a6b1598c548a61a53c0d0a9d0e15a0a3e8f (diff) | |
| parent | 6a4b24e4dd98ded6eae4583e0201692140a85f6a (diff) | |
| download | rust-cb433736da31da4924115bc44c8c95a2a6b7fc84.tar.gz rust-cb433736da31da4924115bc44c8c95a2a6b7fc84.zip | |
Rollup merge of #80672 - matthiaskrgr:xpy_clippy_less_noise, r=Mark-Simulacrum
./x.py clippy: allow the most noisy lints This silences the following clippy lints in ./x.py clippy: many_single_char_names (there are a lot of warnings caused by stdarch) collapsible_if (can reduce readability) type_complexity missing_safety_doc (there are almost 3K warnings issued) too_many_arguments needless_lifetimes (people want 'tcx lifetimes etc) wrong_self_convention (warns about from_..(), to_..(), into_..().. fns that do or do not take self by reference. Just for clarification; this only changes the output of `x.py clippy` inside the rustc repo and does not change anything about clippy or how `cargo clippy` is run on peoples crates.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/check.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs index f65b2b2c79f..72a979338a5 100644 --- a/src/bootstrap/check.rs +++ b/src/bootstrap/check.rs @@ -21,6 +21,16 @@ fn args(builder: &Builder<'_>) -> Vec<String> { } if let Subcommand::Clippy { fix, .. } = builder.config.cmd { + // disable the most spammy clippy lints + let ignored_lints = vec![ + "many_single_char_names", // there are a lot in stdarch + "collapsible_if", + "type_complexity", + "missing_safety_doc", // almost 3K warnings + "too_many_arguments", + "needless_lifetimes", // people want to keep the lifetimes + "wrong_self_convention", + ]; let mut args = vec![]; if fix { #[rustfmt::skip] @@ -33,6 +43,7 @@ fn args(builder: &Builder<'_>) -> Vec<String> { ])); } args.extend(strings(&["--", "--cap-lints", "warn"])); + args.extend(ignored_lints.iter().map(|lint| format!("-Aclippy::{}", lint))); args } else { vec![] |
