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