Update changelog to 1.56

This commit is contained in:
flip1995 2021-09-27 11:56:49 +02:00
parent 0c8799da5a
commit 46f8aa9c31
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5

View file

@ -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)