From 46f8aa9c3178baed1833219d7205569df8f84070 Mon Sep 17 00:00:00 2001 From: flip1995 <philipp.krones@embecosm.com> Date: Mon, 27 Sep 2021 11:56:49 +0200 Subject: [PATCH 1/2] Update changelog to 1.56 --- CHANGELOG.md | 74 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 71 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 040c906a722..af53c36f6bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,79 @@ document. ## Unreleased / In Rust Nightly -[74d1561...master](https://github.com/rust-lang/rust-clippy/compare/74d1561...master) +[7bfc26e...master](https://github.com/rust-lang/rust-clippy/compare/7bfc26e...master) + +## Rust 1.56 + +Current beta, release 2021-10-21 + +[74d1561...7bfc26e](https://github.com/rust-lang/rust-clippy/compare/74d1561...7bfc26e) + +### New Lints + +* [`unwrap_or_else_default`] + [#7516](https://github.com/rust-lang/rust-clippy/pull/7516) + +### Enhancements + +* [`needless_continue`] now also lints in `loop { continue; }` case + [#7477](https://github.com/rust-lang/rust-clippy/pull/7477) +* [`disallowed_type`] now also primitive types can be disallowed + [#7488](https://github.com/rust-lang/rust-clippy/pull/7488) +* [`manual_swap`] now also lints on xor swaps + [#7506](https://github.com/rust-lang/rust-clippy/pull/7506) +* [`map_flatten`] now also lints on the `Result` type + [#7522](https://github.com/rust-lang/rust-clippy/pull/7522) +* [`no_effect`] now also lints on inclusive ranges + [#7556](https://github.com/rust-lang/rust-clippy/pull/7556) + +### False Positive Fixes + +* [`nonstandard_macro_braces`] no longer lints on similar named nested macros + [#7478](https://github.com/rust-lang/rust-clippy/pull/7478) +* [`too_many_lines`] no longer lints in closures to avoid duplicated diagnostics + [#7534](https://github.com/rust-lang/rust-clippy/pull/7534) +* [`similar_names`] no longer complains about `iter` and `item` being too + similar [#7546](https://github.com/rust-lang/rust-clippy/pull/7546) + +### Suggestion Fixes/Improvements + +* [`similar_names`] no longer suggests to insert or add an underscore as a fix + [#7221](https://github.com/rust-lang/rust-clippy/pull/7221) +* [`new_without_default`] no longer shows the full qualified type path when + suggesting adding a `Default` implementation + [#7493](https://github.com/rust-lang/rust-clippy/pull/7493) +* [`while_let_on_iterator`] now suggests re-borrowing mutable references + [#7520](https://github.com/rust-lang/rust-clippy/pull/7520) +* [`extend_with_drain`] improve code suggestion for mutable and immutable + references [#7533](https://github.com/rust-lang/rust-clippy/pull/7533) +* [`trivially_copy_pass_by_ref`] now properly handles `Self` type + [#7535](https://github.com/rust-lang/rust-clippy/pull/7535) +* [`never_loop`] now suggests using `if let` instead of a `for` loop when + applicable [#7541](https://github.com/rust-lang/rust-clippy/pull/7541) + +### Documentation Improvements + +* Reworked Clippy's + [website](https://rust-lang.github.io/rust-clippy/master/index.html) + [#7279](https://github.com/rust-lang/rust-clippy/pull/7279): + * Added applicability information about lints + * Added a link to jump to the specific lint implementation + * Adapted some styling and improved loading time +* `cargo clippy --help` now also explains the `--fix` and `--no-deps` flag + [#7492](https://github.com/rust-lang/rust-clippy/pull/7492) +* [`unnested_or_patterns`] removed `or_patterns` feature gate in the code + example [#7507](https://github.com/rust-lang/rust-clippy/pull/7507) + +### Others + +* Clippy now uses a lint to generate its lint documentation. [Lints all the way + down](https://en.wikipedia.org/wiki/Turtles_all_the_way_down). + [#7502](https://github.com/rust-lang/rust-clippy/pull/7502) ## Rust 1.55 -Current beta, release 2021-09-09 +Current stable, released 2021-09-09 [3ae8faf...74d1561](https://github.com/rust-lang/rust-clippy/compare/3ae8faf...74d1561) @@ -140,7 +208,7 @@ Current beta, release 2021-09-09 ## Rust 1.54 -Current stable, released 2021-07-29 +Released 2021-07-29 [7c7683c...3ae8faf](https://github.com/rust-lang/rust-clippy/compare/7c7683c...3ae8faf) From 7f11e5a9147307d9ec4adb83b900ec346d83dca5 Mon Sep 17 00:00:00 2001 From: flip1995 <philipp.krones@embecosm.com> Date: Tue, 28 Sep 2021 11:08:40 +0100 Subject: [PATCH 2/2] Fix CHANGELOG formatting --- CHANGELOG.md | 64 ++++++++++++++++++++-------------------------------- 1 file changed, 25 insertions(+), 39 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af53c36f6bd..7265a195ed0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,60 +21,58 @@ Current beta, release 2021-10-21 ### Enhancements -* [`needless_continue`] now also lints in `loop { continue; }` case +* [`needless_continue`]: Now also lints in `loop { continue; }` case [#7477](https://github.com/rust-lang/rust-clippy/pull/7477) -* [`disallowed_type`] now also primitive types can be disallowed +* [`disallowed_type`]: Now also primitive types can be disallowed [#7488](https://github.com/rust-lang/rust-clippy/pull/7488) -* [`manual_swap`] now also lints on xor swaps +* [`manual_swap`]: Now also lints on xor swaps [#7506](https://github.com/rust-lang/rust-clippy/pull/7506) -* [`map_flatten`] now also lints on the `Result` type +* [`map_flatten`]: Now also lints on the `Result` type [#7522](https://github.com/rust-lang/rust-clippy/pull/7522) -* [`no_effect`] now also lints on inclusive ranges +* [`no_effect`]: Now also lints on inclusive ranges [#7556](https://github.com/rust-lang/rust-clippy/pull/7556) ### False Positive Fixes -* [`nonstandard_macro_braces`] no longer lints on similar named nested macros +* [`nonstandard_macro_braces`]: No longer lints on similar named nested macros [#7478](https://github.com/rust-lang/rust-clippy/pull/7478) -* [`too_many_lines`] no longer lints in closures to avoid duplicated diagnostics +* [`too_many_lines`]: No longer lints in closures to avoid duplicated diagnostics [#7534](https://github.com/rust-lang/rust-clippy/pull/7534) -* [`similar_names`] no longer complains about `iter` and `item` being too +* [`similar_names`]: No longer complains about `iter` and `item` being too similar [#7546](https://github.com/rust-lang/rust-clippy/pull/7546) ### Suggestion Fixes/Improvements -* [`similar_names`] no longer suggests to insert or add an underscore as a fix +* [`similar_names`]: No longer suggests to insert or add an underscore as a fix [#7221](https://github.com/rust-lang/rust-clippy/pull/7221) -* [`new_without_default`] no longer shows the full qualified type path when +* [`new_without_default`]: No longer shows the full qualified type path when suggesting adding a `Default` implementation [#7493](https://github.com/rust-lang/rust-clippy/pull/7493) -* [`while_let_on_iterator`] now suggests re-borrowing mutable references +* [`while_let_on_iterator`]: Now suggests re-borrowing mutable references [#7520](https://github.com/rust-lang/rust-clippy/pull/7520) -* [`extend_with_drain`] improve code suggestion for mutable and immutable +* [`extend_with_drain`]: Improve code suggestion for mutable and immutable references [#7533](https://github.com/rust-lang/rust-clippy/pull/7533) -* [`trivially_copy_pass_by_ref`] now properly handles `Self` type +* [`trivially_copy_pass_by_ref`]: Now properly handles `Self` type [#7535](https://github.com/rust-lang/rust-clippy/pull/7535) -* [`never_loop`] now suggests using `if let` instead of a `for` loop when +* [`never_loop`]: Now suggests using `if let` instead of a `for` loop when applicable [#7541](https://github.com/rust-lang/rust-clippy/pull/7541) ### Documentation Improvements -* Reworked Clippy's - [website](https://rust-lang.github.io/rust-clippy/master/index.html) - [#7279](https://github.com/rust-lang/rust-clippy/pull/7279): - * Added applicability information about lints - * Added a link to jump to the specific lint implementation - * Adapted some styling and improved loading time -* `cargo clippy --help` now also explains the `--fix` and `--no-deps` flag - [#7492](https://github.com/rust-lang/rust-clippy/pull/7492) -* [`unnested_or_patterns`] removed `or_patterns` feature gate in the code - example [#7507](https://github.com/rust-lang/rust-clippy/pull/7507) - -### Others - * Clippy now uses a lint to generate its lint documentation. [Lints all the way down](https://en.wikipedia.org/wiki/Turtles_all_the_way_down). [#7502](https://github.com/rust-lang/rust-clippy/pull/7502) +* Reworked Clippy's website: + [#7172](https://github.com/rust-lang/rust-clippy/issues/7172) + [#7279](https://github.com/rust-lang/rust-clippy/pull/7279) + * Added applicability information about lints + * Added a link to jump into the implementation + * Improved loading times + * Adapted some styling +* `cargo clippy --help` now also explains the `--fix` and `--no-deps` flag + [#7492](https://github.com/rust-lang/rust-clippy/pull/7492) +* [`unnested_or_patterns`]: Removed `or_patterns` feature gate in the code + example [#7507](https://github.com/rust-lang/rust-clippy/pull/7507) ## Rust 1.55 @@ -194,18 +192,6 @@ Current stable, released 2021-09-09 * [`use_self`] [#7428](https://github.com/rust-lang/rust-clippy/pull/7428) -### Documentation Improvements - -* Reworked Clippy's website: - [#7279](https://github.com/rust-lang/rust-clippy/pull/7279) - [#7172](https://github.com/rust-lang/rust-clippy/issues/7172) - * Added applicability information about lints - * Added a link to jump into the implementation - * Improved loading times - * Adapted some styling -* Clippy now uses a lint to generate its documentation - [#7298](https://github.com/rust-lang/rust-clippy/pull/7298) - ## Rust 1.54 Released 2021-07-29