Skip to content

Commit 0b6e080

Browse files
author
Lukas Markeffsky
committed
[DO NOT MERGE] no cap fr fr
1 parent ea8c6b2 commit 0b6e080

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: compiler/rustc_session/src/config.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1467,11 +1467,15 @@ pub fn get_cmd_lint_options(
14671467
.map(|(_, lint_name, level)| (lint_name, level))
14681468
.collect();
14691469

1470-
let lint_cap = matches.opt_str("cap-lints").map(|cap| {
1470+
let mut lint_cap = matches.opt_str("cap-lints").map(|cap| {
14711471
lint::Level::from_str(&cap)
14721472
.unwrap_or_else(|| early_error(error_format, &format!("unknown lint level: `{cap}`")))
14731473
});
14741474

1475+
if let Some(lint::Allow) = lint_cap {
1476+
lint_cap = Some(lint::Warn);
1477+
}
1478+
14751479
(lint_opts, describe_lints, lint_cap)
14761480
}
14771481

0 commit comments

Comments
 (0)