rustc_lint: Prevent multiple 'incompatible with previous forbid' lints
This commit is contained in:
parent
e0c626fbbc
commit
741884dab2
15 changed files with 8 additions and 204 deletions
|
@ -642,7 +642,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
|
|||
//
|
||||
// This means that this only errors if we're truly lowering the lint
|
||||
// level from forbid.
|
||||
if level != Level::Forbid {
|
||||
if self.lint_added_lints && level != Level::Forbid {
|
||||
if let Level::Forbid = old_level {
|
||||
// Backwards compatibility check:
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue