Skip to content

Commit

Permalink
Fix compilation errors after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianWolff committed Jun 15, 2021
1 parent 80ae9ef commit 88ff8f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/rustc_lint/src/levels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl<'s> LintLevelsBuilder<'s> {
self.sets.lint_cap = sess.opts.lint_cap.unwrap_or(Level::Forbid);

for (position, &(ref lint_name, level)) in (0u32..).zip(sess.opts.lint_opts.iter()) {
store.check_lint_name_cmdline(sess, &lint_name, level);
store.check_lint_name_cmdline(sess, &lint_name, Some(level));
let orig_level = level;

// If the cap is less than this specified level, e.g., if we've got
Expand Down Expand Up @@ -129,8 +129,6 @@ impl<'s> LintLevelsBuilder<'s> {
self.sets.force_warns.extend(&lints);
}
}

self.sets.list.push(LintSet::CommandLine { specs });
}

fn get_current_depth(&self) -> u32 {
Expand Down

0 comments on commit 88ff8f8

Please sign in to comment.