]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_dev/src/update_lints.rs
Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup
[rust.git] / src / tools / clippy / clippy_dev / src / update_lints.rs
index 5024e63bfa738edcfe7e6f30de8d28eded58d722..1bbd9a45b619e448daea496eb77f63fa6693756f 100644 (file)
@@ -58,6 +58,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"),