mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 05:03:21 +00:00
clippy: Remove now obsolete lintlist module
Also stop updating the lintlist module in clippy_dev update_lints
This commit is contained in:
parent
9f1505ce9f
commit
03f04314dd
3 changed files with 1 additions and 2983 deletions
|
@ -22,20 +22,7 @@ pub fn run(update_mode: UpdateMode) {
|
|||
|
||||
let usable_lint_count = round_to_fifty(usable_lints.len());
|
||||
|
||||
let mut file_change = replace_region_in_file(
|
||||
Path::new("src/lintlist/mod.rs"),
|
||||
"begin lint list",
|
||||
"end lint list",
|
||||
false,
|
||||
update_mode == UpdateMode::Change,
|
||||
|| {
|
||||
format!("vec!{:#?}", sorted_usable_lints)
|
||||
.lines()
|
||||
.map(ToString::to_string)
|
||||
.collect::<Vec<_>>()
|
||||
},
|
||||
)
|
||||
.changed;
|
||||
let mut file_change = false;
|
||||
|
||||
file_change |= replace_region_in_file(
|
||||
Path::new("README.md"),
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
/// 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),
|
||||
];
|
2942
src/lintlist/mod.rs
2942
src/lintlist/mod.rs
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue