Skip to content

Commit 406d953

Browse files
committed
Auto merge of #11806 - xFrednet:changelog-1-74, r=Alexendoo
Changelog for Rust 1.74 🎃 Roses are red, Halloween is over, Have you considered, Buying a Mars rover? --- ### The cats of this release: <img height=500 src="https://github.com/rust-lang/rust-clippy/assets/17087237/095bd32e-b5e3-41db-8f0f-bdef7ca1a6d0" alt="The cats of this Clippy release" /> <sub>The cat for the next release can be nominated in the comments</sub> --- changelog: none
2 parents 3ea5bcf + cab975c commit 406d953

7 files changed

+67
-8
lines changed

CHANGELOG.md

+61-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,70 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

9-
[1e8fdf49...master](https://github.com/rust-lang/rust-clippy/compare/1e8fdf49...master)
9+
[7671c283...master](https://github.com/rust-lang/rust-clippy/compare/7671c283...master)
10+
11+
## Rust 1.74
12+
13+
Current stable, released 2023-11-16
14+
15+
[View all 94 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-08-11T15%3A29%3A18Z..2023-09-25T08%3A48%3A22Z+base%3Amaster)
16+
17+
### New Lints
18+
19+
* [`redundant_as_str`]
20+
[#11526](https://github.com/rust-lang/rust-clippy/pull/11526)
21+
* [`needless_borrows_for_generic_args`]
22+
[#11511](https://github.com/rust-lang/rust-clippy/pull/11511)
23+
* [`path_ends_with_ext`]
24+
[#11483](https://github.com/rust-lang/rust-clippy/pull/11483)
25+
* [`unnecessary_map_on_constructor`]
26+
[#11413](https://github.com/rust-lang/rust-clippy/pull/11413)
27+
* [`missing_asserts_for_indexing`]
28+
[#10692](https://github.com/rust-lang/rust-clippy/pull/10692)
29+
* [`iter_out_of_bounds`]
30+
[#11396](https://github.com/rust-lang/rust-clippy/pull/11396)
31+
* [`implied_bounds_in_impls`]
32+
[#11362](https://github.com/rust-lang/rust-clippy/pull/11362)
33+
* [`reserve_after_initialization`]
34+
[#11373](https://github.com/rust-lang/rust-clippy/pull/11373)
35+
* [`should_panic_without_expect`]
36+
[#11204](https://github.com/rust-lang/rust-clippy/pull/11204)
37+
38+
### Moves and Deprecations
39+
40+
* Renamed `incorrect_clone_impl_on_copy_type` to [`non_canonical_clone_impl`]
41+
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
42+
* Renamed `incorrect_partial_ord_impl_on_ord_type` to [`non_canonical_partial_ord_impl`]
43+
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
44+
* Moved [`non_canonical_clone_impl`] to `suspicious` (Now warn-by-default)
45+
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
46+
* Moved [`non_canonical_partial_ord_impl`] to `suspicious` (Now warn-by-default)
47+
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
48+
* Moved [`needless_pass_by_ref_mut`] to `nursery` (Now allow-by-default)
49+
[#11596](https://github.com/rust-lang/rust-clippy/pull/11596)
50+
51+
### Enhancements
52+
53+
* [`undocumented_unsafe_blocks`]: The config values [`accept-comment-above-statement`] and
54+
[`accept-comment-above-attributes`] to `true` by default
55+
[#11170](https://github.com/rust-lang/rust-clippy/pull/11170)
56+
* [`explicit_iter_loop`]: Added [`enforce-iter-loop-reborrow`] to disable reborrow linting by default
57+
[#11418](https://github.com/rust-lang/rust-clippy/pull/11418)
58+
59+
### ICE Fixes
60+
61+
* [`enum_variant_names`]: No longer crashes if the threshold is 0 and the enum has no variants
62+
[#11552](https://github.com/rust-lang/rust-clippy/pull/11552)
63+
* [`cast_possible_truncation`]: No longer crashes on values larger than `u64::MAX`
64+
[#11517](https://github.com/rust-lang/rust-clippy/pull/11517)
65+
* [`tuple_array_conversions`]: No longer crashes if the array length is not usize
66+
[#11379](https://github.com/rust-lang/rust-clippy/pull/11379)
67+
* [`useless_conversion`]: No longer crashes, when the receiver is a non-fn item
68+
[#11070](https://github.com/rust-lang/rust-clippy/pull/11070)
1069

1170
## Rust 1.73
1271

13-
Current stable, released 2023-10-05
72+
Released 2023-10-05
1473

1574
[View all 103 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-07-02T12%3A24%3A40Z..2023-08-11T11%3A09%3A56Z+base%3Amaster)
1675

clippy_lints/src/attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ declare_clippy_lint! {
371371
/// let _ = 1 / random();
372372
/// }
373373
/// ```
374-
#[clippy::version = "1.73.0"]
374+
#[clippy::version = "1.74.0"]
375375
pub SHOULD_PANIC_WITHOUT_EXPECT,
376376
pedantic,
377377
"ensures that all `should_panic` attributes specify its expected panic message"

clippy_lints/src/implied_bounds_in_impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ declare_clippy_lint! {
4343
/// Box::new(123)
4444
/// }
4545
/// ```
46-
#[clippy::version = "1.73.0"]
46+
#[clippy::version = "1.74.0"]
4747
pub IMPLIED_BOUNDS_IN_IMPLS,
4848
nursery,
4949
"specifying bounds that are implied by other bounds in `impl Trait` type"

clippy_lints/src/missing_asserts_for_indexing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ declare_clippy_lint! {
5757
/// v[0] + v[1] + v[2] + v[3]
5858
/// }
5959
/// ```
60-
#[clippy::version = "1.70.0"]
60+
#[clippy::version = "1.74.0"]
6161
pub MISSING_ASSERTS_FOR_INDEXING,
6262
restriction,
6363
"indexing into a slice multiple times without an `assert`"

clippy_lints/src/needless_borrows_for_generic_args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ declare_clippy_lint! {
5050
/// let x = "foo";
5151
/// f(x);
5252
/// ```
53-
#[clippy::version = "pre 1.29.0"]
53+
#[clippy::version = "1.74.0"]
5454
pub NEEDLESS_BORROWS_FOR_GENERIC_ARGS,
5555
style,
5656
"taking a reference that is going to be automatically dereferenced"

clippy_lints/src/reserve_after_initialization.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare_clippy_lint! {
2626
/// ```no_run
2727
/// let mut v: Vec<usize> = Vec::with_capacity(10);
2828
/// ```
29-
#[clippy::version = "1.73.0"]
29+
#[clippy::version = "1.74.0"]
3030
pub RESERVE_AFTER_INITIALIZATION,
3131
complexity,
3232
"`reserve` called immediately after `Vec` creation"

clippy_lints/src/unnecessary_map_on_constructor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ declare_clippy_lint! {
2323
/// ```no_run
2424
/// Some(i32::swap_bytes(4));
2525
/// ```
26-
#[clippy::version = "1.73.0"]
26+
#[clippy::version = "1.74.0"]
2727
pub UNNECESSARY_MAP_ON_CONSTRUCTOR,
2828
complexity,
2929
"using `map`/`map_err` on `Option` or `Result` constructors"

0 commit comments

Comments
 (0)