Skip to content

Commit ec57aa0

Browse files
committed
Changelog for Clippy 1.92
1 parent 92b4b68 commit ec57aa0

File tree

2 files changed

+83
-2
lines changed

2 files changed

+83
-2
lines changed

CHANGELOG.md

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,88 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

9-
[e9b7045...master](https://github.com/rust-lang/rust-clippy/compare/e9b7045...master)
9+
[d9fb15c...master](https://github.com/rust-lang/rust-clippy/compare/d9fb15c...master)
10+
11+
## Rust 1.92
12+
13+
Current stable, released 2025-12-11
14+
15+
[View all 124 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2025-09-05T18%3A24%3A03Z..2025-10-16T14%3A13%3A43Z+base%3Amaster)
16+
17+
### New Lints
18+
19+
* Added [`unnecessary_option_map_or_else`] to `suspicious`
20+
[#14662](https://github.com/rust-lang/rust-clippy/pull/14662)
21+
* Added [`replace_box`] to `perf`
22+
[#14953](https://github.com/rust-lang/rust-clippy/pull/14953)
23+
* Added [`volatile_composites`] to `nursery`
24+
[#15686](https://github.com/rust-lang/rust-clippy/pull/15686)
25+
* Added [`self_only_used_in_recursion`] to `pedantic`
26+
[#14787](https://github.com/rust-lang/rust-clippy/pull/14787)
27+
28+
### Moves and Deprecations
29+
30+
* Split [`redundant_clone`] iterator checks into [`redundant_iter_cloned`]
31+
[#15277](https://github.com/rust-lang/rust-clippy/pull/15277)
32+
* Renamed [`unchecked_duration_subtraction`] to [`unchecked_time_subtraction`]
33+
[#13800](https://github.com/rust-lang/rust-clippy/pull/13800)
34+
35+
### Enhancements
36+
37+
* [`mutex_atomic`] and [`mutex_integer`] overhauled to only lint definitions, not uses; added suggestions
38+
and better help messages
39+
[#15632](https://github.com/rust-lang/rust-clippy/pull/15632)
40+
* [`manual_rotate`] now recognizes non-const rotation amounts
41+
[#15402](https://github.com/rust-lang/rust-clippy/pull/15402)
42+
* [`multiple_inherent_impl`] added `inherent-impl-lint-scope` config option (`module`, `file`,
43+
or `crate`)
44+
[#15843](https://github.com/rust-lang/rust-clippy/pull/15843)
45+
* [`use_self`] now checks structs and enums
46+
[#15566](https://github.com/rust-lang/rust-clippy/pull/15566)
47+
* [`while_let_loop`] extended to lint on `loop { let else }`
48+
[#15701](https://github.com/rust-lang/rust-clippy/pull/15701)
49+
* [`mut_mut`] overhauled with structured suggestions and improved documentation
50+
[#15417](https://github.com/rust-lang/rust-clippy/pull/15417)
51+
* [`nonstandard_macro_braces`] now suggests trailing semicolon when needed
52+
[#15593](https://github.com/rust-lang/rust-clippy/pull/15593)
53+
* [`ptr_offset_with_cast`] now respects MSRV when suggesting fix, and lints more cases
54+
[#15613](https://github.com/rust-lang/rust-clippy/pull/15613)
55+
* [`cast_sign_loss`] and [`cast_possible_wrap`] added suggestions using `cast_{un,}signed()` methods
56+
(MSRV 1.87+)
57+
[#15384](https://github.com/rust-lang/rust-clippy/pull/15384)
58+
* [`unchecked_time_subtraction`] extended to include `Duration - Duration` operations
59+
[#13800](https://github.com/rust-lang/rust-clippy/pull/13800)
60+
* [`filter_next`] now suggests replacing `filter().next_back()` with `rfind()` for
61+
`DoubleEndedIterator`
62+
[#15748](https://github.com/rust-lang/rust-clippy/pull/15748)
63+
64+
### False Positive Fixes
65+
66+
* [`unnecessary_safety_comment`] fixed FPs with comments above attributes
67+
[#15678](https://github.com/rust-lang/rust-clippy/pull/15678)
68+
* [`manual_unwrap_or`] fixed FP edge case
69+
[#15812](https://github.com/rust-lang/rust-clippy/pull/15812)
70+
* [`needless_continue`] fixed FP when match type is not unit or never
71+
[#15547](https://github.com/rust-lang/rust-clippy/pull/15547)
72+
* [`if_then_some_else_none`] fixed FP when return exists in block expr
73+
[#15783](https://github.com/rust-lang/rust-clippy/pull/15783)
74+
* [`new_without_default`] fixed to copy `#[cfg]` onto `impl Default` and fixed FP on private type
75+
with trait impl
76+
[#15720](https://github.com/rust-lang/rust-clippy/pull/15720)
77+
[#15782](https://github.com/rust-lang/rust-clippy/pull/15782)
78+
* [`question_mark`] fixed FP on variables used after
79+
[#15644](https://github.com/rust-lang/rust-clippy/pull/15644)
80+
* [`needless_return`] fixed FP with `cfg`d code after `return`
81+
[#15669](https://github.com/rust-lang/rust-clippy/pull/15669)
82+
* [`useless_attribute`] fixed FP on `deprecated_in_future`
83+
[#15645](https://github.com/rust-lang/rust-clippy/pull/15645)
84+
* [`double_parens`] fixed FP when macros are involved
85+
[#15420](https://github.com/rust-lang/rust-clippy/pull/15420)
86+
87+
### ICE Fixes
88+
89+
* [`len_zero`] fixed ICE when fn len has a return type without generic type params
90+
[#15660](https://github.com/rust-lang/rust-clippy/pull/15660)
1091

1192
## Rust 1.91
1293

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4659,7 +4659,7 @@ declare_clippy_lint! {
46594659
/// let x: Option<u32> = Some(4);
46604660
/// let y = x.unwrap_or_else(|| 2 * k);
46614661
/// ```
4662-
#[clippy::version = "1.88.0"]
4662+
#[clippy::version = "1.92.0"]
46634663
pub UNNECESSARY_OPTION_MAP_OR_ELSE,
46644664
suspicious,
46654665
"making no use of the \"map closure\" when calling `.map_or_else(|| 2 * k, |n| n)`"

0 commit comments

Comments
 (0)