diff --git a/src/librustc/lint/levels.rs b/src/librustc/lint/levels.rs index 336ebe79d33ab..e430aec8d0f5b 100644 --- a/src/librustc/lint/levels.rs +++ b/src/librustc/lint/levels.rs @@ -299,7 +299,7 @@ impl<'a> LintLevelsBuilder<'a> { "change it to", new_lint_name.to_string(), Applicability::MachineApplicable, - ).emit(); + ).cancel(); let src = LintSource::Node(Symbol::intern(&new_lint_name), li.span); for id in ids {