Skip to content

Commit

Permalink
work around rust-lang#48070 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Mar 19, 2018
1 parent 76bef34 commit 9b3d104
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/librustc/lint/levels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,16 @@ impl<'a> LintLevelsBuilder<'a> {
forbidden_lint_name);
diag_builder.span_label(lint_attr_span, "overruled by previous forbid");
match forbid_src {
LintSource::Default => &mut diag_builder,
LintSource::Default => { }
LintSource::Node(_, forbid_source_span) => {
diag_builder.span_label(forbid_source_span,
"`forbid` level set here")
"`forbid` level set here");
},
LintSource::CommandLine(_) => {
diag_builder.note("`forbid` lint level was set on command line")
diag_builder.note("`forbid` lint level was set on command line");
}
}.emit();
}
diag_builder.emit();
// don't set a separate error for every lint in the group
break
}
Expand Down

0 comments on commit 9b3d104

Please sign in to comment.