From 1945e8f1f6e54dc53ace8cf2314ed76301ff51ee Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Sat, 24 Feb 2024 16:02:13 +0300 Subject: [PATCH] pass ignored lints after manual ones Previously, when passing lint rules manually using `x clippy ..`, ignored lints would override manual ones. This change corrects the order by passing ignored lints after the manual ones. Signed-off-by: onur-ozkan --- src/bootstrap/src/core/build_steps/check.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/src/core/build_steps/check.rs b/src/bootstrap/src/core/build_steps/check.rs index f582d5ada3e9..4d13cf94d918 100644 --- a/src/bootstrap/src/core/build_steps/check.rs +++ b/src/bootstrap/src/core/build_steps/check.rs @@ -64,8 +64,8 @@ fn args(builder: &Builder<'_>) -> Vec { let all_args = std::env::args().collect::>(); args.extend(strings(&["--", "--cap-lints", "warn"])); - args.extend(ignored_lints.iter().map(|lint| format!("-Aclippy::{}", lint))); args.extend(get_clippy_rules_in_order(&all_args, allow, deny, warn, forbid)); + args.extend(ignored_lints.iter().map(|lint| format!("-Aclippy::{}", lint))); args.extend(builder.config.free_args.clone()); args } else {