Skip to content

Changelog for Rust 1.71 👑 #11138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 54 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,60 @@ document.

## Unreleased / Beta / In Rust Nightly

[83e42a23...master](https://github.com/rust-lang/rust-clippy/compare/83e42a23...master)
[435a8ad8...master](https://github.com/rust-lang/rust-clippy/compare/435a8ad8...master)

## Rust 1.71
Current beta, released 2023-07-13

[View all 78 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-04-11T20%3A05%3A26Z..2023-05-20T13%3A48%3A17Z+base%3Amaster)

### New Lints

* [`non_minimal_cfg`]
[#10763](https://github.com/rust-lang/rust-clippy/pull/10763)
* [`manual_next_back`]
[#10769](https://github.com/rust-lang/rust-clippy/pull/10769)
* [`ref_patterns`]
[#10736](https://github.com/rust-lang/rust-clippy/pull/10736)
* [`default_constructed_unit_structs`]
[#10716](https://github.com/rust-lang/rust-clippy/pull/10716)
* [`manual_while_let_some`]
[#10647](https://github.com/rust-lang/rust-clippy/pull/10647)
* [`needless_bool_assign`]
[#10432](https://github.com/rust-lang/rust-clippy/pull/10432)
* [`items_after_test_module`]
[#10578](https://github.com/rust-lang/rust-clippy/pull/10578)

### Moves and Deprecations

* Rename `integer_arithmetic` to `arithmetic_side_effects`
[#10674](https://github.com/rust-lang/rust-clippy/pull/10674)
* Moved [`redundant_clone`] to `nursery` (Now allow-by-default)
[#10873](https://github.com/rust-lang/rust-clippy/pull/10873)

### Enhancements

* [`invalid_regex`]: Now supports the new syntax introduced after regex v1.8.0
[#10682](https://github.com/rust-lang/rust-clippy/pull/10682)
* [`semicolon_outside_block`]: Added [`semicolon-outside-block-ignore-multiline`] as a new config value.
[#10656](https://github.com/rust-lang/rust-clippy/pull/10656)
* [`semicolon_inside_block`]: Added [`semicolon-inside-block-ignore-singleline`] as a new config value.
[#10656](https://github.com/rust-lang/rust-clippy/pull/10656)
* [`unnecessary_box_returns`]: Added [`unnecessary-box-size`] as a new config value to set the maximum
size of `T` in `Box<T>` to be linted.
[#10651](https://github.com/rust-lang/rust-clippy/pull/10651)

### Documentation Improvements

* `cargo clippy --explain LINT` now shows possible configuration options for the explained lint
[#10751](https://github.com/rust-lang/rust-clippy/pull/10751)
* New config values mentioned in this changelog will now be linked.
[#10889](https://github.com/rust-lang/rust-clippy/pull/10889)
* Several sections of [Clippy's book] have been reworked
[#10652](https://github.com/rust-lang/rust-clippy/pull/10652)
[#10622](https://github.com/rust-lang/rust-clippy/pull/10622)

[Clippy's book]: https://doc.rust-lang.org/clippy/

## Rust 1.70

Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/items_after_test_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ declare_clippy_lint! {
/// // [...]
/// }
/// ```
#[clippy::version = "1.70.0"]
#[clippy::version = "1.71.0"]
pub ITEMS_AFTER_TEST_MODULE,
style,
"An item was found after the testing module `tests`"
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/loops/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ declare_clippy_lint! {
/// // use `number`
/// }
/// ```
#[clippy::version = "1.70.0"]
#[clippy::version = "1.71.0"]
pub MANUAL_WHILE_LET_SOME,
style,
"checking for emptiness of a `Vec` in the loop condition and popping an element in the body"
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/needless_bool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ declare_clippy_lint! {
/// # let mut skip: bool;
/// skip = !must_keep(x, y);
/// ```
#[clippy::version = "1.69.0"]
#[clippy::version = "1.71.0"]
pub NEEDLESS_BOOL_ASSIGN,
complexity,
"setting the same boolean variable in both branches of an if-statement"
Expand Down