Skip to content

Commit 7745deb

Browse files
committed
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 <[email protected]>
1 parent 848e474 commit 7745deb

File tree

1 file changed

+1
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/build_steps/check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ fn args(builder: &Builder<'_>) -> Vec<String> {
6666
let all_args = std::env::args().collect::<Vec<_>>();
6767

6868
args.extend(strings(&["--", "--cap-lints", "warn"]));
69-
args.extend(ignored_lints.iter().map(|lint| format!("-Aclippy::{}", lint)));
7069
args.extend(get_clippy_rules_in_order(&all_args, allow, deny, warn, forbid));
70+
args.extend(ignored_lints.iter().map(|lint| format!("-Aclippy::{}", lint)));
7171
args.extend(builder.config.free_args.clone());
7272
args
7373
} else {

0 commit comments

Comments
 (0)