Skip to content

Commit 9554e47

Browse files
committed
Auto merge of #11605 - xFrednet:changelog-1-73, r=blyxyas
Changelog for Rust 1.73 🖊️ Roses are red, violets are blue, I'm tired... 💤 Oh nice, tea 🍵 --- ### The cat of this release: ![cat-like-doritos](https://github.com/rust-lang/rust-clippy/assets/114838443/1ca9eb1e-3e5c-42a4-bda9-6f24a2e03015) cc: `@Centri3` & `@blyxyas` As the author, I call dibs on the 1.74 cat picture 🐈 --- changelog: none
2 parents b437069 + 404217e commit 9554e47

10 files changed

+108
-18
lines changed

CHANGELOG.md

+92-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,101 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

9-
[37f4c172...master](https://github.com/rust-lang/rust-clippy/compare/37f4c172...master)
9+
[1e8fdf49...master](https://github.com/rust-lang/rust-clippy/compare/1e8fdf49...master)
10+
11+
## Rust 1.73
12+
13+
Current stable, released 2023-10-05
14+
15+
[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)
16+
17+
### New Lints
18+
19+
* [`impossible_comparisons`]
20+
[#10843](https://github.com/rust-lang/rust-clippy/pull/10843)
21+
* [`redundant_comparisons`]
22+
[#10843](https://github.com/rust-lang/rust-clippy/pull/10843)
23+
* [`ignored_unit_patterns`]
24+
[#11242](https://github.com/rust-lang/rust-clippy/pull/11242)
25+
* [`readonly_write_lock`]
26+
[#11210](https://github.com/rust-lang/rust-clippy/pull/11210)
27+
* [`filter_map_bool_then`]
28+
[#11115](https://github.com/rust-lang/rust-clippy/pull/11115)
29+
* [`needless_return_with_question_mark`]
30+
[#11031](https://github.com/rust-lang/rust-clippy/pull/11031)
31+
* [`redundant_guards`]
32+
[#10955](https://github.com/rust-lang/rust-clippy/pull/10955)
33+
* [`redundant_locals`]
34+
[#10885](https://github.com/rust-lang/rust-clippy/pull/10885)
35+
* [`absolute_paths`]
36+
[#11003](https://github.com/rust-lang/rust-clippy/pull/11003)
37+
* [`error_impl_error`]
38+
[#11107](https://github.com/rust-lang/rust-clippy/pull/11107)
39+
* [`iter_skip_zero`]
40+
[#11046](https://github.com/rust-lang/rust-clippy/pull/11046)
41+
* [`string_lit_chars_any`]
42+
[#11052](https://github.com/rust-lang/rust-clippy/pull/11052)
43+
* [`four_forward_slashes`]
44+
[#11140](https://github.com/rust-lang/rust-clippy/pull/11140)
45+
* [`format_collect`]
46+
[#11116](https://github.com/rust-lang/rust-clippy/pull/11116)
47+
* [`needless_pass_by_ref_mut`]
48+
[#10900](https://github.com/rust-lang/rust-clippy/pull/10900)
49+
* [`manual_is_infinite`]
50+
[#11049](https://github.com/rust-lang/rust-clippy/pull/11049)
51+
* [`manual_is_finite`]
52+
[#11049](https://github.com/rust-lang/rust-clippy/pull/11049)
53+
* [`incorrect_partial_ord_impl_on_ord_type`]
54+
[#10788](https://github.com/rust-lang/rust-clippy/pull/10788)
55+
* [`read_line_without_trim`]
56+
[#10970](https://github.com/rust-lang/rust-clippy/pull/10970)
57+
* [`type_id_on_box`]
58+
[#10987](https://github.com/rust-lang/rust-clippy/pull/10987)
59+
60+
### Moves and Deprecations
61+
62+
* Renamed `unwrap_or_else_default` to [`unwrap_or_default`]
63+
[#10120](https://github.com/rust-lang/rust-clippy/pull/10120)
64+
* Moved [`tuple_array_conversions`] to `pedantic` (Now allow-by-default)
65+
[#11146](https://github.com/rust-lang/rust-clippy/pull/11146)
66+
* Moved [`arc_with_non_send_sync`] to `suspicious` (Now warn-by-default)
67+
[#11104](https://github.com/rust-lang/rust-clippy/pull/11104)
68+
* Moved [`needless_raw_string_hashes`] to `pedantic` (Now allow-by-default)
69+
[#11415](https://github.com/rust-lang/rust-clippy/pull/11415)
70+
71+
### Enhancements
72+
73+
* [`unwrap_used`]: No longer lints on the never-type or never-like enums
74+
[#11252](https://github.com/rust-lang/rust-clippy/pull/11252)
75+
* [`expect_used`]: No longer lints on the never-type or never-like enums
76+
[#11252](https://github.com/rust-lang/rust-clippy/pull/11252)
77+
78+
### False Positive Fixes
79+
80+
* [`panic_in_result_fn`]: No longer triggers on `todo!`, `unimplemented!`, `unreachable!`
81+
[#11123](https://github.com/rust-lang/rust-clippy/pull/11123)
82+
83+
### Suggestion Fixes/Improvements
84+
85+
* [`semicolon_if_nothing_returned`]: The suggestion is now machine-applicable with rustfix
86+
[#11083](https://github.com/rust-lang/rust-clippy/pull/11083)
87+
88+
### ICE Fixes
89+
90+
* [`filter_map_bool_then`]: No longer crashes on late-bound regions
91+
[#11318](https://github.com/rust-lang/rust-clippy/pull/11318)
92+
* [`unwrap_or_default`]: No longer crashes on alias types for local items
93+
[#11258](https://github.com/rust-lang/rust-clippy/pull/11258)
94+
* [`unnecessary_literal_unwrap`]: No longer crashes on `None.unwrap_or_default()`
95+
[#11106](https://github.com/rust-lang/rust-clippy/pull/11106)
96+
* Fixed MIR-related ICE
97+
[#11130](https://github.com/rust-lang/rust-clippy/pull/11130)
98+
* [`missing_fields_in_debug`]: No longer crashes on non-ADT self types
99+
[#11069](https://github.com/rust-lang/rust-clippy/pull/11069)
10100

11101
## Rust 1.72
12102

13-
Current stable, released 2023-08-24
103+
Released 2023-08-24
14104

15105
[View all 131 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-05-22T14%3A53%3A59Z..2023-07-01T22%3A57%3A20Z+base%3Amaster)
16106

clippy_lints/src/error_impl_error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare_clippy_lint! {
2727
///
2828
/// impl std::error::Error for Error { ... }
2929
/// ```
30-
#[clippy::version = "1.72.0"]
30+
#[clippy::version = "1.73.0"]
3131
pub ERROR_IMPL_ERROR,
3232
restriction,
3333
"exported types named `Error` that implement `Error`"

clippy_lints/src/four_forward_slashes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ declare_clippy_lint! {
2828
/// // ...
2929
/// }
3030
/// ```
31-
#[clippy::version = "1.72.0"]
31+
#[clippy::version = "1.73.0"]
3232
pub FOUR_FORWARD_SLASHES,
3333
suspicious,
3434
"comments with 4 forward slashes (`////`) likely intended to be doc comments (`///`)"

clippy_lints/src/manual_float_methods.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare_clippy_lint! {
2626
/// # let x = 1.0f32;
2727
/// if x.is_infinite() {}
2828
/// ```
29-
#[clippy::version = "1.72.0"]
29+
#[clippy::version = "1.73.0"]
3030
pub MANUAL_IS_INFINITE,
3131
style,
3232
"use dedicated method to check if a float is infinite"
@@ -51,7 +51,7 @@ declare_clippy_lint! {
5151
/// if x.is_finite() {}
5252
/// if x.is_finite() {}
5353
/// ```
54-
#[clippy::version = "1.72.0"]
54+
#[clippy::version = "1.73.0"]
5555
pub MANUAL_IS_FINITE,
5656
style,
5757
"use dedicated method to check if a float is finite"

clippy_lints/src/matches/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ declare_clippy_lint! {
961961
/// _ => todo!(),
962962
/// }
963963
/// ```
964-
#[clippy::version = "1.72.0"]
964+
#[clippy::version = "1.73.0"]
965965
pub REDUNDANT_GUARDS,
966966
complexity,
967967
"checks for unnecessary guards in match expressions"

clippy_lints/src/methods/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -2970,7 +2970,7 @@ declare_clippy_lint! {
29702970
/// assert_eq!((*any_box).type_id(), TypeId::of::<i32>());
29712971
/// // ^ dereference first, to call `type_id` on `dyn Any`
29722972
/// ```
2973-
#[clippy::version = "1.72.0"]
2973+
#[clippy::version = "1.73.0"]
29742974
pub TYPE_ID_ON_BOX,
29752975
suspicious,
29762976
"calling `.type_id()` on `Box<dyn Any>`"
@@ -3391,7 +3391,7 @@ declare_clippy_lint! {
33913391
/// // ^^^^^^^^^^^ remove the trailing newline
33923392
/// assert_eq!(num, 42);
33933393
/// ```
3394-
#[clippy::version = "1.72.0"]
3394+
#[clippy::version = "1.73.0"]
33953395
pub READ_LINE_WITHOUT_TRIM,
33963396
correctness,
33973397
"calling `Stdin::read_line`, then trying to parse it without first trimming"
@@ -3419,7 +3419,7 @@ declare_clippy_lint! {
34193419
/// # let c = 'c';
34203420
/// matches!(c, '\\' | '.' | '+' | '*' | '(' | ')' | '|' | '[' | ']' | '{' | '}' | '^' | '$' | '#' | '&' | '-' | '~');
34213421
/// ```
3422-
#[clippy::version = "1.72.0"]
3422+
#[clippy::version = "1.73.0"]
34233423
pub STRING_LIT_CHARS_ANY,
34243424
restriction,
34253425
"checks for `<string_lit>.chars().any(|i| i == c)`"
@@ -3454,7 +3454,7 @@ declare_clippy_lint! {
34543454
/// })
34553455
/// }
34563456
/// ```
3457-
#[clippy::version = "1.72.0"]
3457+
#[clippy::version = "1.73.0"]
34583458
pub FORMAT_COLLECT,
34593459
perf,
34603460
"`format!`ing every element in a collection, then collecting the strings into a new `String`"
@@ -3475,7 +3475,7 @@ declare_clippy_lint! {
34753475
/// let y = v.iter().collect::<Vec<_>>();
34763476
/// assert_eq!(x, y);
34773477
/// ```
3478-
#[clippy::version = "1.72.0"]
3478+
#[clippy::version = "1.73.0"]
34793479
pub ITER_SKIP_ZERO,
34803480
correctness,
34813481
"disallows `.skip(0)`"
@@ -3506,7 +3506,7 @@ declare_clippy_lint! {
35063506
/// # let v = vec![];
35073507
/// _ = v.into_iter().filter(|i| i % 2 == 0).map(|i| really_expensive_fn(i));
35083508
/// ```
3509-
#[clippy::version = "1.72.0"]
3509+
#[clippy::version = "1.73.0"]
35103510
pub FILTER_MAP_BOOL_THEN,
35113511
style,
35123512
"checks for usage of `bool::then` in `Iterator::filter_map`"

clippy_lints/src/needless_pass_by_ref_mut.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ declare_clippy_lint! {
4747
/// 12 + *y
4848
/// }
4949
/// ```
50-
#[clippy::version = "1.72.0"]
50+
#[clippy::version = "1.73.0"]
5151
pub NEEDLESS_PASS_BY_REF_MUT,
5252
nursery,
5353
"using a `&mut` argument when it's not mutated"

clippy_lints/src/non_canonical_impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ declare_clippy_lint! {
103103
/// }
104104
/// }
105105
/// ```
106-
#[clippy::version = "1.72.0"]
106+
#[clippy::version = "1.73.0"]
107107
pub NON_CANONICAL_PARTIAL_ORD_IMPL,
108108
suspicious,
109109
"non-canonical implementation of `PartialOrd` on an `Ord` type"

clippy_lints/src/operators/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ declare_clippy_lint! {
312312
/// # let status_code = 200;
313313
/// if status_code <= 400 && status_code > 500 {}
314314
/// ```
315-
#[clippy::version = "1.71.0"]
315+
#[clippy::version = "1.73.0"]
316316
pub IMPOSSIBLE_COMPARISONS,
317317
correctness,
318318
"double comparisons that will never evaluate to `true`"
@@ -332,7 +332,7 @@ declare_clippy_lint! {
332332
/// # let status_code = 200;
333333
/// if status_code <= 400 && status_code < 500 {}
334334
/// ```
335-
#[clippy::version = "1.71.0"]
335+
#[clippy::version = "1.73.0"]
336336
pub REDUNDANT_COMPARISONS,
337337
correctness,
338338
"double comparisons where one of them can be removed"

clippy_lints/src/redundant_locals.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare_clippy_lint! {
3737
/// // no redefinition with the same name
3838
/// }
3939
/// ```
40-
#[clippy::version = "1.72.0"]
40+
#[clippy::version = "1.73.0"]
4141
pub REDUNDANT_LOCALS,
4242
correctness,
4343
"redundant redefinition of a local binding"

0 commit comments

Comments
 (0)