mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 20:53:37 +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
@ -22,20 +22,7 @@ pub fn run(update_mode: UpdateMode) {
|
|||||||
|
|
||||||
let usable_lint_count = round_to_fifty(usable_lints.len());
|
let usable_lint_count = round_to_fifty(usable_lints.len());
|
||||||
|
|
||||||
let mut file_change = replace_region_in_file(
|
let mut file_change = false;
|
||||||
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;
|
|
||||||
|
|
||||||
file_change |= replace_region_in_file(
|
file_change |= replace_region_in_file(
|
||||||
Path::new("README.md"),
|
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 New Issue
Block a user