We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea8c6b2 commit 0b6e080Copy full SHA for 0b6e080
compiler/rustc_session/src/config.rs
@@ -1467,11 +1467,15 @@ pub fn get_cmd_lint_options(
1467
.map(|(_, lint_name, level)| (lint_name, level))
1468
.collect();
1469
1470
- let lint_cap = matches.opt_str("cap-lints").map(|cap| {
+ let mut lint_cap = matches.opt_str("cap-lints").map(|cap| {
1471
lint::Level::from_str(&cap)
1472
.unwrap_or_else(|| early_error(error_format, &format!("unknown lint level: `{cap}`")))
1473
});
1474
1475
+ if let Some(lint::Allow) = lint_cap {
1476
+ lint_cap = Some(lint::Warn);
1477
+ }
1478
+
1479
(lint_opts, describe_lints, lint_cap)
1480
}
1481
0 commit comments