-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #4175 - yaahallo:master, r=oli-obk
Implement better help for clippy-driver #4173
- Loading branch information
Showing
4 changed files
with
2,349 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/// Lint data parsed from the Clippy source code. | ||
#[derive(Clone, PartialEq, Debug)] | ||
pub struct Lint { | ||
pub name: &'static str, | ||
pub group: &'static str, | ||
pub desc: &'static str, | ||
pub deprecation: Option<&'static str>, | ||
pub module: &'static str, | ||
} | ||
|
||
#[derive(PartialOrd, PartialEq, Ord, Eq)] | ||
pub enum Level { | ||
Allow, | ||
Warn, | ||
Deny, | ||
} | ||
|
||
pub const LINT_LEVELS: [(&str, Level); 8] = [ | ||
("correctness", Level::Deny), | ||
("style", Level::Warn), | ||
("complexity", Level::Warn), | ||
("perf", Level::Warn), | ||
("restriction", Level::Allow), | ||
("pedantic", Level::Allow), | ||
("nursery", Level::Allow), | ||
("cargo", Level::Allow), | ||
]; |
Oops, something went wrong.