We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2a856e commit 95be8b2Copy full SHA for 95be8b2
compiler/rustc_errors/src/lib.rs
@@ -1055,8 +1055,7 @@ impl Handler {
1055
1056
#[rustc_lint_diagnostics]
1057
pub fn warn(&self, msg: impl Into<DiagnosticMessage>) {
1058
- let mut db = DiagnosticBuilder::new(self, Warning(None), msg);
1059
- db.emit();
+ DiagnosticBuilder::new(self, Warning(None), msg).emit();
1060
}
1061
1062
0 commit comments