Skip to content

Commit 8baeb26

Browse files
committed
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
2 parents 34e4c9f + aa1de4d commit 8baeb26

File tree

5 files changed

+60
-6
lines changed

5 files changed

+60
-6
lines changed

Diff for: CHANGELOG.md

+56-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,65 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

9-
[09ac14c9...master](https://github.com/rust-lang/rust-clippy/compare/09ac14c9...master)
9+
[a859e5cc...master](https://github.com/rust-lang/rust-clippy/compare/a859e5cc...master)
10+
11+
## Rust 1.76
12+
13+
Current stable, released 2023-02-08
14+
15+
[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)
16+
17+
### New Lints
18+
19+
- [`infinite_loop`]
20+
[#11829](https://github.com/rust-lang/rust-clippy/pull/11829)
21+
- [`ineffective_open_options`]
22+
[#11902](https://github.com/rust-lang/rust-clippy/pull/11902)
23+
- [`uninhabited_references`]
24+
[#11878](https://github.com/rust-lang/rust-clippy/pull/11878)
25+
- [`repeat_vec_with_capacity`]
26+
[#11597](https://github.com/rust-lang/rust-clippy/pull/11597)
27+
- [`test_attr_in_doctest`]
28+
[#11872](https://github.com/rust-lang/rust-clippy/pull/11872)
29+
- [`option_map_or_err_ok`]
30+
[#11864](https://github.com/rust-lang/rust-clippy/pull/11864)
31+
- [`join_absolute_paths`]
32+
[#11453](https://github.com/rust-lang/rust-clippy/pull/11453)
33+
- [`impl_hash_borrow_with_str_and_bytes`]
34+
[#11781](https://github.com/rust-lang/rust-clippy/pull/11781)
35+
- [`iter_over_hash_type`]
36+
[#11791](https://github.com/rust-lang/rust-clippy/pull/11791)
37+
38+
### Moves and Deprecations
39+
40+
- Renamed `blocks_in_if_conditions` to [`blocks_in_conditions`]
41+
[#11853](https://github.com/rust-lang/rust-clippy/pull/11853)
42+
- Moved [`implied_bounds_in_impls`] to `complexity` (Now warn-by-default)
43+
[#11867](https://github.com/rust-lang/rust-clippy/pull/11867)
44+
- Moved [`if_same_then_else`] to `style` (Now warn-by-default)
45+
[#11809](https://github.com/rust-lang/rust-clippy/pull/11809)
46+
47+
### Enhancements
48+
49+
- [`missing_safety_doc`], [`unnecessary_safety_doc`], [`missing_panics_doc`], [`missing_errors_doc`]:
50+
Added the [`check-private-items`] configuration to enable lints on private items
51+
[#11842](https://github.com/rust-lang/rust-clippy/pull/11842)
52+
53+
### ICE Fixes
54+
55+
- [`impl_trait_in_params`]: No longer crashes when a function has generics but no function parameters
56+
[#11804](https://github.com/rust-lang/rust-clippy/pull/11804)
57+
- [`unused_enumerate_index`]: No longer crashes on empty tuples
58+
[#11756](https://github.com/rust-lang/rust-clippy/pull/11756)
59+
60+
### Others
61+
62+
- Clippy now respects the `CARGO` environment value
63+
[#11944](https://github.com/rust-lang/rust-clippy/pull/11944)
1064

1165
## Rust 1.75
1266

13-
Current stable, released 2023-12-28
67+
Released 2023-12-28
1468

1569
[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)
1670

Diff for: clippy_lints/src/doc/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ declare_clippy_lint! {
226226
/// unimplemented!();
227227
/// }
228228
/// ```
229-
#[clippy::version = "1.40.0"]
229+
#[clippy::version = "1.76.0"]
230230
pub TEST_ATTR_IN_DOCTEST,
231231
suspicious,
232232
"presence of `#[test]` in code examples"

Diff for: clippy_lints/src/iter_over_hash_type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ declare_clippy_lint! {
3434
/// let value = &my_map[key];
3535
/// }
3636
/// ```
37-
#[clippy::version = "1.75.0"]
37+
#[clippy::version = "1.76.0"]
3838
pub ITER_OVER_HASH_TYPE,
3939
restriction,
4040
"iterating over unordered hash-based types (`HashMap` and `HashSet`)"

Diff for: clippy_lints/src/loops/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ declare_clippy_lint! {
672672
/// }
673673
/// }
674674
/// ```
675-
#[clippy::version = "1.75.0"]
675+
#[clippy::version = "1.76.0"]
676676
pub INFINITE_LOOP,
677677
restriction,
678678
"possibly unintended infinite loop"

Diff for: clippy_lints/src/repeat_vec_with_capacity.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare_clippy_lint! {
4242
/// // ^^^ this closure executes 123 times
4343
/// // and the vecs will have the expected capacity
4444
/// ```
45-
#[clippy::version = "1.74.0"]
45+
#[clippy::version = "1.76.0"]
4646
pub REPEAT_VEC_WITH_CAPACITY,
4747
suspicious,
4848
"repeating a `Vec::with_capacity` expression which does not retain capacity"

0 commit comments

Comments
 (0)