Skip to content

Commit b69d2ff

Browse files
authored
Changelog for Clippy 1.91 🎃 (#15971)
Violets are red, Roses are blue, Ghosts haunt the night, And pumpkins grin too. ----- Meet @thefiddler's Mowgli and @bjornwein's Buffy, our winners at rust-lang/rust-clippy#15670 It's our first dual winner of the Clippy Cat Changelog Contest! <img width="1100" height="714" alt="image" src="https://github.com/user-attachments/assets/ee9399d5-f8bd-45bb-a18c-c24a94817672" /> <img width="1664" height="1940" alt="image" src="https://github.com/user-attachments/assets/2734c5df-2ebc-465f-89e4-5801f4d33678" /> ----- Cats for the next release can be traditionally nominated in the comments. changelog: none r? flip1995
2 parents 5e7ce90 + 97e681f commit b69d2ff

File tree

2 files changed

+84
-1
lines changed

2 files changed

+84
-1
lines changed

CHANGELOG.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,89 @@ document.
88

99
[e9b7045...master](https://github.com/rust-lang/rust-clippy/compare/e9b7045...master)
1010

11+
## Rust 1.91
12+
13+
Current stable, released 2025-10-30
14+
15+
[View all 146 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2025-07-25T21%3A05%3A11Z..2025-09-04T22%3A34%3A27Z+base%3Amaster)
16+
17+
### New Lints
18+
19+
* Added [`possible_missing_else`] to `suspicious`
20+
[#15317](https://github.com/rust-lang/rust-clippy/pull/15317)
21+
22+
### Moves and Deprecations
23+
24+
* Moved [`cognitive_complexity`] from `nursery` to `restriction`
25+
[#15415](https://github.com/rust-lang/rust-clippy/pull/15415)
26+
* Moved [`declare_interior_mutable_const`] from `style` to `suspicious`
27+
[#15454](https://github.com/rust-lang/rust-clippy/pull/15454)
28+
* Moved [`crosspointer_transmute`] from `complexity` to `suspicious`
29+
[#15403](https://github.com/rust-lang/rust-clippy/pull/15403)
30+
31+
### Enhancements
32+
33+
* [`excessive_precision`] added `const_literal_digits_threshold` option to suppress overly precise constants.
34+
[#15193](https://github.com/rust-lang/rust-clippy/pull/15193)
35+
* [`unwrap_in_result`] rewritten for better accuracy; now lints on `.unwrap()` and `.expect()`
36+
directly and no longer mixes `Result` and `Option`.
37+
[#15445](https://github.com/rust-lang/rust-clippy/pull/15445)
38+
* [`panic`] now works in `const` contexts.
39+
[#15565](https://github.com/rust-lang/rust-clippy/pull/15565)
40+
* [`implicit_clone`] now also lints `to_string` calls (merging [`string_to_string`] behavior).
41+
[#14177](https://github.com/rust-lang/rust-clippy/pull/14177)
42+
* [`collapsible_match`] improved suggestions to handle necessary ref/dereferencing.
43+
[#14221](https://github.com/rust-lang/rust-clippy/pull/14221)
44+
* [`map_identity`] now suggests making variables mutable when required; recognizes tuple struct restructuring.
45+
[#15261](https://github.com/rust-lang/rust-clippy/pull/15261)
46+
* [`option_map_unit_fn`] preserves `unsafe` blocks in suggestions.
47+
[#15570](https://github.com/rust-lang/rust-clippy/pull/15570)
48+
* [`unnecessary_mut_passed`] provides structured, clearer fix suggestions.
49+
[#15438](https://github.com/rust-lang/rust-clippy/pull/15438)
50+
* [`float_equality_without_abs`] now checks `f16` and `f128` types.
51+
[#15054](https://github.com/rust-lang/rust-clippy/pull/15054)
52+
* [`doc_markdown`] expanded whitelist (`InfiniBand`, `RoCE`, `PowerPC`) and improved handling of
53+
identifiers like NixOS.
54+
[#15558](https://github.com/rust-lang/rust-clippy/pull/15558)
55+
* [`clone_on_ref_ptr`] now suggests fully qualified paths to avoid resolution errors.
56+
[#15561](https://github.com/rust-lang/rust-clippy/pull/15561)
57+
* [`manual_assert`] simplifies boolean expressions in suggested fixes.
58+
[#15368](https://github.com/rust-lang/rust-clippy/pull/15368)
59+
* [`four_forward_slashes`] warns about bare CR in comments and avoids invalid autofixes.
60+
[#15175](https://github.com/rust-lang/rust-clippy/pull/15175)
61+
62+
### False Positive Fixes
63+
64+
* [`alloc_instead_of_core`] fixed FP when `alloc` is an alias
65+
[#15581](https://github.com/rust-lang/rust-clippy/pull/15581)
66+
* [`needless_range_loop`] fixed FP and FN when meeting multidimensional array
67+
[#15486](https://github.com/rust-lang/rust-clippy/pull/15486)
68+
* [`semicolon_inside_block`] fixed FP when attribute over expr is not enabled
69+
[#15476](https://github.com/rust-lang/rust-clippy/pull/15476)
70+
* [`unnested_or_patterns`] fixed FP on structs with only shorthand field patterns
71+
[#15343](https://github.com/rust-lang/rust-clippy/pull/15343)
72+
* [`match_ref_pats`] fixed FP on match scrutinee of never type
73+
[#15474](https://github.com/rust-lang/rust-clippy/pull/15474)
74+
* [`infinite_loop`] fixed FP in async blocks that are not awaited
75+
[#15157](https://github.com/rust-lang/rust-clippy/pull/15157)
76+
* [`iter_on_single_items`] fixed FP on function pointers and let statements
77+
[#15013](https://github.com/rust-lang/rust-clippy/pull/15013)
78+
79+
### ICE Fixes
80+
81+
* [`len_zero`] fix ICE when fn len has a return type without generic type params
82+
[#15660](https://github.com/rust-lang/rust-clippy/pull/15660)
83+
84+
### Documentation Improvements
85+
86+
* [`cognitive_complexity`] corrected documentation to state lint is in `restriction`, not `nursery`
87+
[#15563](https://github.com/rust-lang/rust-clippy/pull/15563)
88+
89+
### Performance Improvements
90+
91+
* [`doc_broken_link`] optimized by 99.77% (12M → 27k instructions)
92+
[#15385](https://github.com/rust-lang/rust-clippy/pull/15385)
93+
1194
## Rust 1.90
1295

1396
Current stable, released 2025-09-18

clippy_lints/src/formatting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ declare_clippy_lint! {
110110
/// } if bar { // looks like an `else` is missing here
111111
/// }
112112
/// ```
113-
#[clippy::version = "1.90.0"]
113+
#[clippy::version = "1.91.0"]
114114
pub POSSIBLE_MISSING_ELSE,
115115
suspicious,
116116
"possibly missing `else`"

0 commit comments

Comments
 (0)