diff options
| author | flip1995 <philipp.krones@embecosm.com> | 2022-04-17 20:43:43 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2022-06-06 16:17:58 +0200 |
| commit | b55192880040580bbdab9a36afa1d47bd486d6ed (patch) | |
| tree | 53286d7efc4edf462634ff26eed17eaf4e9cb06e | |
| parent | c9cbead65672bd1606e630cddbbcf158d164d3e7 (diff) | |
| download | rust-b55192880040580bbdab9a36afa1d47bd486d6ed.tar.gz rust-b55192880040580bbdab9a36afa1d47bd486d6ed.zip | |
Auto update lint count in Clippy book
| -rw-r--r-- | clippy_dev/src/update_lints.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clippy_dev/src/update_lints.rs b/clippy_dev/src/update_lints.rs index 5024e63bfa7..1bbd9a45b61 100644 --- a/clippy_dev/src/update_lints.rs +++ b/clippy_dev/src/update_lints.rs @@ -60,6 +60,16 @@ fn generate_lint_files( replace_region_in_file( update_mode, + Path::new("book/src/README.md"), + "[There are over ", + " lints included in this crate!]", + |res| { + write!(res, "{}", round_to_fifty(usable_lints.len())).unwrap(); + }, + ); + + replace_region_in_file( + update_mode, Path::new("CHANGELOG.md"), "<!-- begin autogenerated links to lint list -->\n", "<!-- end autogenerated links to lint list -->", |
