Auto merge of #86009 - cjgillot:fwarn, r=davidtwco
Make ForceWarn a lint level. Follow-up to #85788 cc `@rylev`
This commit is contained in:
commit
8971fff984
13 changed files with 48 additions and 76 deletions
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue