Skip to content

Commit 6e344d1

Browse files
committed
work around #48070 for now
1 parent 0a3a727 commit 6e344d1

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
@@ -302,15 +302,16 @@ impl<'a> LintLevelsBuilder<'a> {
302302
forbidden_lint_name);
303303
diag_builder.span_label(lint_attr_span, "overruled by previous forbid");
304304
match forbid_src {
305-
LintSource::Default => &mut diag_builder,
305+
LintSource::Default => { }
306306
LintSource::Node(_, forbid_source_span) => {
307307
diag_builder.span_label(forbid_source_span,
308-
"`forbid` level set here")
308+
"`forbid` level set here");
309309
},
310310
LintSource::CommandLine(_) => {
311-
diag_builder.note("`forbid` lint level was set on command line")
311+
diag_builder.note("`forbid` lint level was set on command line");
312312
}
313-
}.emit();
313+
}
314+
diag_builder.emit();
314315
// don't set a separate error for every lint in the group
315316
break
316317
}

0 commit comments

Comments
 (0)