Skip to content

Commit 1761a65

Browse files
committed
mark a temporary hack as such
1 parent 93dc97a commit 1761a65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_session/config.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,9 @@ pub fn get_cmd_lint_options(
10191019
for &level in &[lint::Allow, lint::Warn, lint::Deny, lint::Forbid] {
10201020
for (passed_arg_pos, lint_name) in matches.opt_strs_pos(level.as_str()) {
10211021
let arg_pos = if let lint::Forbid = level {
1022-
// forbid is always specified last, so it can't be overridden
1022+
// 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.
10231025
usize::max_value()
10241026
} else {
10251027
passed_arg_pos

0 commit comments

Comments
 (0)