1
Fork 0

Auto merge of #86009 - cjgillot:fwarn, r=davidtwco

Make ForceWarn a lint level.

Follow-up to #85788
cc `@rylev`
This commit is contained in:
bors 2021-06-29 13:11:16 +00:00
commit 8971fff984
13 changed files with 48 additions and 76 deletions

View file

@ -51,6 +51,7 @@ pub enum Applicability {
pub enum Level {
Allow,
Warn,
ForceWarn,
Deny,
Forbid,
}
@ -63,6 +64,7 @@ impl Level {
match self {
Level::Allow => "allow",
Level::Warn => "warn",
Level::ForceWarn => "force-warns",
Level::Deny => "deny",
Level::Forbid => "forbid",
}