Plumb through rustc_lint_defs::Level as enum rather than string.
This commit is contained in:
parent
39f2f18463
commit
0529a13b5d
5 changed files with 19 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue