}
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]
]));
}
args.extend(strings(&["--", "--cap-lints", "warn"]));
+ args.extend(ignored_lints.iter().map(|lint| format!("-Aclippy::{}", lint)));
args
} else {
vec![]
.arg(builder.src.join(format!("compiler/rustc_codegen_{}/Cargo.toml", backend)));
rustc_cargo_env(builder, &mut cargo, target);
+ builder.info(&format!(
+ "Checking {} artifacts ({} -> {})",
+ backend, &compiler.host.triple, target.triple
+ ));
+
run_cargo(
builder,
cargo,