Auto merge of #12224 - xFrednet:chaneglog-1-76, r=Manishearth

Changelog for Clippy 1.76 🐈

Roses are red,
Violets are blue,
So many cute cats,
How to choose?

---

### The cat of this release is: *Cabrel* submitted by `@daniel-g-gagnon:`

<img height=500 src="https://github.com/rust-lang/rust-clippy/assets/17087237/41aea3dc-7935-4dfe-80ff-a6efd92f76ab" alt="The cats of this Clippy release" />

The cat for the next release can be voted on: [here](https://docs.google.com/forms/d/e/1FAIpQLSfERam31AEi3_5uVsugi1-JHGF9Po1oC7OIiLs8jglprZNy_g/viewform)

The cat for the next next release can be nominated in the comments and will be voted in the next changelog PR (Submission deadline is 2024-02-06 23:59CET)

---

changelog: none
This commit is contained in:
bors 2024-02-05 08:44:34 +00:00
commit 8baeb26754
5 changed files with 60 additions and 6 deletions

View File

@ -6,11 +6,65 @@ document.
## Unreleased / Beta / In Rust Nightly ## Unreleased / Beta / In Rust Nightly
[09ac14c9...master](https://github.com/rust-lang/rust-clippy/compare/09ac14c9...master) [a859e5cc...master](https://github.com/rust-lang/rust-clippy/compare/a859e5cc...master)
## Rust 1.76
Current stable, released 2023-02-08
[View all 85 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-11-02T20%3A23%3A40Z..2023-12-16T13%3A11%3A08Z+base%3Amaster)
### New Lints
- [`infinite_loop`]
[#11829](https://github.com/rust-lang/rust-clippy/pull/11829)
- [`ineffective_open_options`]
[#11902](https://github.com/rust-lang/rust-clippy/pull/11902)
- [`uninhabited_references`]
[#11878](https://github.com/rust-lang/rust-clippy/pull/11878)
- [`repeat_vec_with_capacity`]
[#11597](https://github.com/rust-lang/rust-clippy/pull/11597)
- [`test_attr_in_doctest`]
[#11872](https://github.com/rust-lang/rust-clippy/pull/11872)
- [`option_map_or_err_ok`]
[#11864](https://github.com/rust-lang/rust-clippy/pull/11864)
- [`join_absolute_paths`]
[#11453](https://github.com/rust-lang/rust-clippy/pull/11453)
- [`impl_hash_borrow_with_str_and_bytes`]
[#11781](https://github.com/rust-lang/rust-clippy/pull/11781)
- [`iter_over_hash_type`]
[#11791](https://github.com/rust-lang/rust-clippy/pull/11791)
### Moves and Deprecations
- Renamed `blocks_in_if_conditions` to [`blocks_in_conditions`]
[#11853](https://github.com/rust-lang/rust-clippy/pull/11853)
- Moved [`implied_bounds_in_impls`] to `complexity` (Now warn-by-default)
[#11867](https://github.com/rust-lang/rust-clippy/pull/11867)
- Moved [`if_same_then_else`] to `style` (Now warn-by-default)
[#11809](https://github.com/rust-lang/rust-clippy/pull/11809)
### Enhancements
- [`missing_safety_doc`], [`unnecessary_safety_doc`], [`missing_panics_doc`], [`missing_errors_doc`]:
Added the [`check-private-items`] configuration to enable lints on private items
[#11842](https://github.com/rust-lang/rust-clippy/pull/11842)
### ICE Fixes
- [`impl_trait_in_params`]: No longer crashes when a function has generics but no function parameters
[#11804](https://github.com/rust-lang/rust-clippy/pull/11804)
- [`unused_enumerate_index`]: No longer crashes on empty tuples
[#11756](https://github.com/rust-lang/rust-clippy/pull/11756)
### Others
- Clippy now respects the `CARGO` environment value
[#11944](https://github.com/rust-lang/rust-clippy/pull/11944)
## Rust 1.75 ## Rust 1.75
Current stable, released 2023-12-28 Released 2023-12-28
[View all 69 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-09-25T11%3A47%3A47Z..2023-11-02T16%3A41%3A59Z+base%3Amaster) [View all 69 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-09-25T11%3A47%3A47Z..2023-11-02T16%3A41%3A59Z+base%3Amaster)

View File

@ -226,7 +226,7 @@
/// unimplemented!(); /// unimplemented!();
/// } /// }
/// ``` /// ```
#[clippy::version = "1.40.0"] #[clippy::version = "1.76.0"]
pub TEST_ATTR_IN_DOCTEST, pub TEST_ATTR_IN_DOCTEST,
suspicious, suspicious,
"presence of `#[test]` in code examples" "presence of `#[test]` in code examples"

View File

@ -34,7 +34,7 @@
/// let value = &my_map[key]; /// let value = &my_map[key];
/// } /// }
/// ``` /// ```
#[clippy::version = "1.75.0"] #[clippy::version = "1.76.0"]
pub ITER_OVER_HASH_TYPE, pub ITER_OVER_HASH_TYPE,
restriction, restriction,
"iterating over unordered hash-based types (`HashMap` and `HashSet`)" "iterating over unordered hash-based types (`HashMap` and `HashSet`)"

View File

@ -672,7 +672,7 @@
/// } /// }
/// } /// }
/// ``` /// ```
#[clippy::version = "1.75.0"] #[clippy::version = "1.76.0"]
pub INFINITE_LOOP, pub INFINITE_LOOP,
restriction, restriction,
"possibly unintended infinite loop" "possibly unintended infinite loop"

View File

@ -42,7 +42,7 @@
/// // ^^^ this closure executes 123 times /// // ^^^ this closure executes 123 times
/// // and the vecs will have the expected capacity /// // and the vecs will have the expected capacity
/// ``` /// ```
#[clippy::version = "1.74.0"] #[clippy::version = "1.76.0"]
pub REPEAT_VEC_WITH_CAPACITY, pub REPEAT_VEC_WITH_CAPACITY,
suspicious, suspicious,
"repeating a `Vec::with_capacity` expression which does not retain capacity" "repeating a `Vec::with_capacity` expression which does not retain capacity"