From 1761a65ebadd3c4125fa80c0f5570b24429bafff Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 9 Apr 2020 23:02:13 +0200 Subject: [PATCH] mark a temporary hack as such --- src/librustc_session/config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librustc_session/config.rs b/src/librustc_session/config.rs index 4e2423bc3b1..aaf30c583e2 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