We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a3a727 commit 6e344d1Copy full SHA for 6e344d1
src/librustc/lint/levels.rs
@@ -302,15 +302,16 @@ impl<'a> LintLevelsBuilder<'a> {
302
forbidden_lint_name);
303
diag_builder.span_label(lint_attr_span, "overruled by previous forbid");
304
match forbid_src {
305
- LintSource::Default => &mut diag_builder,
+ LintSource::Default => { }
306
LintSource::Node(_, forbid_source_span) => {
307
diag_builder.span_label(forbid_source_span,
308
- "`forbid` level set here")
+ "`forbid` level set here");
309
},
310
LintSource::CommandLine(_) => {
311
- diag_builder.note("`forbid` lint level was set on command line")
+ diag_builder.note("`forbid` lint level was set on command line");
312
}
313
- }.emit();
+ }
314
+ diag_builder.emit();
315
// don't set a separate error for every lint in the group
316
break
317
0 commit comments