We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93dc97a commit 1761a65Copy full SHA for 1761a65
src/librustc_session/config.rs
@@ -1019,7 +1019,9 @@ pub fn get_cmd_lint_options(
1019
for &level in &[lint::Allow, lint::Warn, lint::Deny, lint::Forbid] {
1020
for (passed_arg_pos, lint_name) in matches.opt_strs_pos(level.as_str()) {
1021
let arg_pos = if let lint::Forbid = level {
1022
- // forbid is always specified last, so it can't be overridden
+ // HACK: forbid is always specified last, so it can't be overridden.
1023
+ // FIXME: remove this once <https://github.com/rust-lang/rust/issues/70819> is
1024
+ // fixed and `forbid` works as expected.
1025
usize::max_value()
1026
} else {
1027
passed_arg_pos
0 commit comments