diff --git a/src/librustc_session/config.rs b/src/librustc_session/config.rs index 4e2423bc3b114..aaf30c583e263 100644 --- a/src/librustc_session/config.rs +++ b/src/librustc_session/config.rs @@ -1019,7 +1019,9 @@ pub fn get_cmd_lint_options( for &level in &[lint::Allow, lint::Warn, lint::Deny, lint::Forbid] { for (passed_arg_pos, lint_name) in matches.opt_strs_pos(level.as_str()) { let arg_pos = if let lint::Forbid = level { - // forbid is always specified last, so it can't be overridden + // HACK: forbid is always specified last, so it can't be overridden. + // FIXME: remove this once is + // fixed and `forbid` works as expected. usize::max_value() } else { passed_arg_pos