Skip to content

Commit 9b3d104

Browse files
committed
work around rust-lang#48070 for now
1 parent 76bef34 commit 9b3d104

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/librustc/lint/levels.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,16 @@ impl<'a> LintLevelsBuilder<'a> {
305305
forbidden_lint_name);
306306
diag_builder.span_label(lint_attr_span, "overruled by previous forbid");
307307
match forbid_src {
308-
LintSource::Default => &mut diag_builder,
308+
LintSource::Default => { }
309309
LintSource::Node(_, forbid_source_span) => {
310310
diag_builder.span_label(forbid_source_span,
311-
"`forbid` level set here")
311+
"`forbid` level set here");
312312
},
313313
LintSource::CommandLine(_) => {
314-
diag_builder.note("`forbid` lint level was set on command line")
314+
diag_builder.note("`forbid` lint level was set on command line");
315315
}
316-
}.emit();
316+
}
317+
diag_builder.emit();
317318
// don't set a separate error for every lint in the group
318319
break
319320
}

0 commit comments

Comments
 (0)