File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
clippy_lints/src/utils/internal_lints Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5318,7 +5318,7 @@ Released 2018-09-13
5318
5318
[ `zero_width_space` ] : https://rust-lang.github.io/rust-clippy/master/index.html#zero_width_space
5319
5319
[ `zst_offset` ] : https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
5320
5320
<!-- end autogenerated links to lint list -->
5321
- <!-- Start configuration's links to the book, DO NOT EDIT MANUALLY -->
5321
+ <!-- begin autogenerated links to configuration documentation -->
5322
5322
[ `arithmetic-side-effects-allowed` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#arithmetic-side-effects-allowed
5323
5323
[ `arithmetic-side-effects-allowed-binary` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#arithmetic-side-effects-allowed-binary
5324
5324
[ `arithmetic-side-effects-allowed-unary` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#arithmetic-side-effects-allowed-unary
@@ -5373,3 +5373,5 @@ Released 2018-09-13
5373
5373
[ `future-size-threshold` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#future-size-threshold
5374
5374
[ `unnecessary-box-size` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#unnecessary-box-size
5375
5375
[ `allow-private-module-inception` ] : https://doc.rust-lang.org/clippy/lint_configuration.html#allow-private-module-inception
5376
+ <!-- end autogenerated links to configuration documentation -->
5377
+
Original file line number Diff line number Diff line change @@ -267,15 +267,14 @@ Please use that command to update the file and do not edit it by hand.
267
267
let mut changelog = std:: fs:: read_to_string ( CHANGELOG_PATH ) . unwrap ( ) ;
268
268
let mut changelog_file = OpenOptions :: new ( ) . read ( true ) . write ( true ) . open ( CHANGELOG_PATH ) . unwrap ( ) ;
269
269
270
- if let Some ( position) = changelog. find ( "<!-- Start configuration's links to the book, DO NOT EDIT MANUALLY -->" )
271
- {
270
+ if let Some ( position) = changelog. find ( "<!-- begin autogenerated links to configuration documentation -->" ) {
272
271
// I know this is kinda wasteful, we just don't have regex on `clippy_lints` so... this is the best
273
272
// we can do AFAIK.
274
273
changelog = changelog[ ..position] . to_string ( ) ;
275
274
}
276
275
writeln ! (
277
276
changelog_file,
278
- "{changelog}<!-- Start configuration's links to the book, DO NOT EDIT MANUALLY -->\n {} " ,
277
+ "{changelog}<!-- begin autogenerated links to configuration documentation --> \n {} \n <!-- end autogenerated links to configuration documentation -->\n " ,
279
278
self . configs_to_markdown( ClippyConfiguration :: to_markdown_link)
280
279
)
281
280
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments