1
Fork 0

Plumb through rustc_lint_defs::Level as enum rather than string.

This commit is contained in:
Jeremy Fitzhardinge 2022-04-15 01:24:49 -07:00 committed by Jeremy Fitzhardinge
parent 39f2f18463
commit 0529a13b5d
5 changed files with 19 additions and 9 deletions

View file

@ -212,7 +212,12 @@ pub trait Emitter {
fn emit_future_breakage_report(&mut self, _diags: Vec<Diagnostic>) {}
/// Emit list of unused externs
fn emit_unused_externs(&mut self, _lint_level: &str, _unused_externs: &[&str]) {}
fn emit_unused_externs(
&mut self,
_lint_level: rustc_lint_defs::Level,
_unused_externs: &[&str],
) {
}
/// Checks if should show explanations about "rustc --explain"
fn should_show_explain(&self) -> bool {