We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 304c8b1 commit bb0049bCopy full SHA for bb0049b
src/librustc/session/mod.rs
@@ -367,8 +367,8 @@ impl Session {
367
do_method()
368
},
369
_ => {
370
- let lint_id = lint::LintId::of(lint);
371
- let id_span_message = (DiagnosticMessageId::LintId(lint_id), span, message.to_owned());
+ let lint_id = DiagnosticMessageId::LintId(lint::LintId::of(lint));
+ let id_span_message = (lint_id, span, message.to_owned());
372
let fresh = self.one_time_diagnostics.borrow_mut().insert(id_span_message);
373
if fresh {
374
0 commit comments