RIIR update lints: Generate deprecated lints
The update script now also generates the 'register_removed' section in `clippy_lints/src/lib.rs`. Also, instead of using `let mut store ...`, I added a new identifier line so that the replacement will continue to work in case `let mut store ...` ever changes.
This commit is contained in:
@@ -82,4 +82,12 @@ fn update_lints() {
|
||||
false,
|
||||
|| { gen_changelog_lint_list(lint_list.clone()) }
|
||||
);
|
||||
|
||||
replace_region_in_file(
|
||||
"../clippy_lints/src/lib.rs",
|
||||
"begin deprecated lints",
|
||||
"end deprecated lints",
|
||||
false,
|
||||
|| { gen_deprecated(lint_list.clone()) }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user