]> git.lizzy.rs Git - rust.git/commitdiff
mark a temporary hack as such
authorRalf Jung <post@ralfj.de>
Thu, 9 Apr 2020 21:02:13 +0000 (23:02 +0200)
committerRalf Jung <post@ralfj.de>
Thu, 9 Apr 2020 21:02:13 +0000 (23:02 +0200)
src/librustc_session/config.rs

index 4e2423bc3b11452ac5be6eaa0abf44db2724fd3b..aaf30c583e263eda6b0d26f3ae94baa0fd996488 100644 (file)
@@ -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 <https://github.com/rust-lang/rust/issues/70819> is
+                // fixed and `forbid` works as expected.
                 usize::max_value()
             } else {
                 passed_arg_pos