mark a temporary hack as such
This commit is contained in:
parent
93dc97a853
commit
1761a65eba
@ -1019,7 +1019,9 @@ pub fn get_cmd_lint_options(
|
|||||||
for &level in &[lint::Allow, lint::Warn, lint::Deny, lint::Forbid] {
|
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()) {
|
for (passed_arg_pos, lint_name) in matches.opt_strs_pos(level.as_str()) {
|
||||||
let arg_pos = if let lint::Forbid = level {
|
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()
|
usize::max_value()
|
||||||
} else {
|
} else {
|
||||||
passed_arg_pos
|
passed_arg_pos
|
||||||
|
Loading…
Reference in New Issue
Block a user