We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80ae9ef commit 88ff8f8Copy full SHA for 88ff8f8
compiler/rustc_lint/src/levels.rs
@@ -88,7 +88,7 @@ impl<'s> LintLevelsBuilder<'s> {
88
self.sets.lint_cap = sess.opts.lint_cap.unwrap_or(Level::Forbid);
89
90
for (position, &(ref lint_name, level)) in (0u32..).zip(sess.opts.lint_opts.iter()) {
91
- store.check_lint_name_cmdline(sess, &lint_name, level);
+ store.check_lint_name_cmdline(sess, &lint_name, Some(level));
92
let orig_level = level;
93
94
// If the cap is less than this specified level, e.g., if we've got
@@ -129,8 +129,6 @@ impl<'s> LintLevelsBuilder<'s> {
129
self.sets.force_warns.extend(&lints);
130
}
131
132
-
133
- self.sets.list.push(LintSet::CommandLine { specs });
134
135
136
fn get_current_depth(&self) -> u32 {
0 commit comments