Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
81e8c67
`redundant_clone`: split iterator checks into `redundant_iter_cloned`…
Jarcho Jul 15, 2025
064825e
Add suggestion to `cast_sign_loss` and `cast_possible_wrap` using the…
RunDevelopment Aug 1, 2025
0eb16ea
Add test to ensure that suggestions are only emitted if MSRV supports it
RunDevelopment Aug 1, 2025
4e286bb
Apply suggestions from code review
RunDevelopment Aug 3, 2025
cd2d2a0
init by copying `ty_search_pat`
ada4a Aug 6, 2025
a4dbbc9
rename recursive function call
ada4a Aug 6, 2025
2de81f5
Infer is a unit variant
ada4a Aug 6, 2025
73d04ba
fix Path
ada4a Aug 6, 2025
baf09e2
OpaqueDef is called ImplTrait
ada4a Aug 6, 2025
f529233
fix Tup
ada4a Aug 6, 2025
c7b7588
fix TraitObject
ada4a Aug 6, 2025
742cba3
fix FnPtr
ada4a Aug 6, 2025
41614fc
add Paren
ada4a Aug 6, 2025
2bd9f98
add UnsafeBinder
ada4a Aug 6, 2025
0512002
add PinnedRef
ada4a Aug 11, 2025
bbd0d46
add MacCall
ada4a Aug 11, 2025
17c0cab
add ImplicitSelf
ada4a Aug 12, 2025
457e020
add misc kinds: Pat, CVarArgs, Typeof, Dummy, Err
ada4a Aug 12, 2025
217fc30
(finally) implement `WithSearchPat`
ada4a Aug 11, 2025
2459ad6
make the lint early-pass
ada4a Aug 6, 2025
40ff076
fix: `never_loop` forget to remove break in nested loop
profetia Jul 27, 2025
169eb87
Remove expect collapsible_span_lint_calls from span_lint_and_then
alex-semenyuk Aug 25, 2025
891523d
fix: `read_zero_byte_vec` suggests wrongly inside `let` stmt
profetia Aug 27, 2025
9b0611f
Merge commit 'e9b70454e4c9584be3b22ddabd26b741aeb06c10' into clippy-s…
flip1995 Sep 4, 2025
b2eb28d
fix: Filter suggestion parts that match existing code
Muscraft Aug 28, 2025
27250a3
Auto merge of #146121 - Muscraft:filter-suggestion-parts, r=petrochenkov
bors Sep 5, 2025
828ee51
Fix `never_loop` forget to remove `break` in nested loop (#15356)
blyxyas Sep 5, 2025
d4cb0b4
clean-up a bit
ada4a Sep 5, 2025
1f86679
fix(transmute_ptr_to_ref): don't suggest `.cast` when to-type is DST
ada4a Sep 5, 2025
4ae4f67
clean-up a bit
ada4a Sep 4, 2025
6812aa3
fix(use_self): descend into type's children when looking for lifetimes
ada4a Sep 4, 2025
e7c91ab
remove `has_lifetime`
ada4a Sep 4, 2025
4fd9a06
Move `derive.rs` to `derive/mod.rs`
ada4a Sep 6, 2025
8a11cf8
Split out each lint into a separate module
ada4a Sep 6, 2025
24c34d7
extend the let-chain
ada4a Aug 25, 2025
fe86ce6
split `any` in two parts
ada4a Sep 6, 2025
2147bb9
Fix `read_zero_byte_vec` suggests wrongly inside `let` stmt (#15582)
dswij Sep 7, 2025
f8180c3
extract to a separate file
ada4a Sep 7, 2025
2c27b58
tiny clean-up
ada4a Sep 7, 2025
847ca73
`let_unit_with_type_underscore`: make early-pass (#15458)
Jarcho Sep 7, 2025
368b235
move `toplevel_ref_args` out of `misc` (#15627)
samueltardieu Sep 8, 2025
36c2c0a
fix(semicolon_inside_block): don't lint if block is in parens
ada4a Aug 2, 2025
20226db
change end to last
Qelxiros Aug 1, 2025
49e2f37
fix(semicolon_inside_block): don't lint if block is in parens (#15626)
samueltardieu Sep 9, 2025
0df12d7
erase_regions to erase_and_anonymize_regions
BoxyUwU Aug 21, 2025
7e7ce10
fix: `useless_attribute` FP on `deprecated_in_future`
profetia Sep 9, 2025
c9ed8a1
Strip frontmatter in fewer places
fmease Sep 8, 2025
e4f69ea
fix(needless_closure): don't lint on `AsyncFn*`s
ada4a Sep 10, 2025
a6acb29
Rollup merge of #144765 - Qelxiros:range-inclusive-last, r=jhpratt
matthiaskrgr Sep 10, 2025
5782d9e
Rollup merge of #146340 - fmease:frontmatter-containment, r=fee1-dead…
matthiaskrgr Sep 10, 2025
3272277
fixup no_{core,std} handling code
jdonszelmann Aug 24, 2025
ba107fc
Revert "Rollup merge of #122661 - estebank:assert-macro-span, r=petro…
jieyouxu Sep 11, 2025
2108f03
clean-up `future_not_send` a bit (#15554)
blyxyas Sep 11, 2025
ec73197
Fix `useless_attribute` FP on `deprecated_in_future` (#15645)
y21 Sep 11, 2025
6e12c54
fix(len_zero): don't eagerly call `GenericArgs::type_at`
ada4a Sep 11, 2025
077d116
fix(needless_closure): don't lint on `AsyncFn*`s (#15649)
dswij Sep 11, 2025
990aaf6
refactor: split `derive` lints into separate modules (#15622)
Jarcho Sep 11, 2025
467efe0
fix(len_zero): don't eagerly call `GenericArgs::type_at` (#15660)
y21 Sep 11, 2025
c057abd
Add suggestion to `cast_sign_loss` and `cast_possible_wrap` using the…
Jarcho Sep 11, 2025
066a979
fix: `invalid_upcast_comparisons` wrongly unmangled macros
profetia Aug 25, 2025
745b790
Only suggest type in as_underscore when it's suggestable
teofr Sep 10, 2025
af7fa53
Fix `as_underscore` to only suggest when it's suggestable (#15652)
Alexendoo Sep 12, 2025
8ca5332
Fix `invalid_upcast_comparisons` wrongly unmangled macros (#15663)
samueltardieu Sep 12, 2025
68a3ada
other clean-up
ada4a Aug 16, 2025
31c7e62
reorganize `peel_*_ty_refs` functions
ada4a Aug 16, 2025
8938bb2
clean-up tests
ada4a Sep 10, 2025
da6d23b
fix: ignore unsafe ops from `.await` desugaring
ada4a Sep 10, 2025
601ddcc
fix(use_self): don't early-return if the outer type has no lifetimes …
samueltardieu Sep 12, 2025
9f02cbc
`clippy_utils`: make `peel_*_ty_refs` class of functions a bit more c…
samueltardieu Sep 12, 2025
8f84324
autofix for `rest_pat_in_fully_bound_structs`
Erk- Sep 10, 2025
8d5078e
Introduce trait_item_of
camsteffen Aug 15, 2025
d419d51
Rename AssocItemContainer -> AssocContainer
camsteffen Aug 13, 2025
d734981
Introduce hir::ImplItemImplKind
camsteffen Aug 5, 2025
324c214
Split AssocContainer::{InherentImpl,TraitImpl}
camsteffen Aug 13, 2025
382c964
small clean-up
ada4a Sep 12, 2025
4328c95
Rollup merge of #146389 - jdonszelmann:no-std, r=oli-obk
jdonszelmann Sep 13, 2025
25cf36a
clean-up
ada4a Sep 12, 2025
b901ba7
fix(ref_option): don't lint in external and proc-macros
ada4a Sep 12, 2025
472768a
fix(ref_option): don't lint in external and proc-macros (#15668)
samueltardieu Sep 13, 2025
af82c3d
tiny clean-up
ada4a Sep 9, 2025
51ee8d8
split `returns` module
ada4a Sep 9, 2025
1d0582a
refactor: split `return` lints into separate modules (#15646)
samueltardieu Sep 13, 2025
6f3f1f3
fix(needless_return): FP with `cfg`d code after `return`
ada4a Sep 13, 2025
0c87db2
fix(needless_return): FP with `cfg`d code after `return` (#15669)
samueltardieu Sep 13, 2025
968569f
Auto merge of #145186 - camsteffen:assoc-impl-kind, r=petrochenkov
bors Sep 13, 2025
544e24a
Remove expect `collapsible_span_lint_calls` and use `span_lint_and_he…
blyxyas Sep 13, 2025
cd196aa
Implement `Debug` for `SourceText`
samueltardieu Sep 13, 2025
adcd2de
Implement `Debug` for `SourceText` (#15672)
Jarcho Sep 14, 2025
074bff0
Remove unnecessary `#![allow]` in test
samueltardieu Sep 14, 2025
cb286b4
fix(multiple_unsafe_ops_per_block): ignore unsafe ops from `.await` d…
samueltardieu Sep 14, 2025
1810347
Remove unnecessary `#![allow]` in test (#15675)
dswij Sep 14, 2025
25881bf
fix(elidable_lifetime_names): avoid overlapping spans in suggestions
ada4a Sep 12, 2025
e7421cc
fix(elidable_lifetime_names): avoid overlapping spans in suggestions …
samueltardieu Sep 14, 2025
f981739
refactor `ptr_offset_with_cast`
folkertdev Sep 4, 2025
7a12684
Refactor `ptr_offset_with_cast` (#15613)
samueltardieu Sep 14, 2025
8af6638
Changelog for Clippy 1.90
alex-semenyuk Sep 13, 2025
c4da39c
Recognize canonical `?` pattern with `Result`
samueltardieu Sep 15, 2025
2a6197e
Recognize canonical `?` pattern with `Result` (#15680)
Jarcho Sep 16, 2025
49ae1d4
Changelog for Clippy 1.90 🍂 (#15670)
flip1995 Sep 16, 2025
19e5286
Fix `unnecessary_unwrap` false negative when unwrapping a known value…
GalileoCap Sep 16, 2025
4516fee
Remove Rvalue::Len.
cjgillot Sep 14, 2025
f37b9c0
fix(transmute_ptr_to_ref): don't suggest `.cast` when to-type is DST …
dswij Sep 17, 2025
55570c9
Fix `unnecessary_unwrap` false negative (#12295) (#15689)
Alexendoo Sep 17, 2025
301092e
Remove automatic feature freeze comment
samueltardieu Sep 17, 2025
e84b5ca
Do not look for `Cargo.toml` inside `target`
samueltardieu Sep 17, 2025
c1f7829
`match_as_ref`: do not lint if other arm is not `None => None`
samueltardieu Sep 17, 2025
d457260
suggestion for `rest_pat_in_fully_bound_structs` (#15648)
samueltardieu Sep 17, 2025
90d0085
`match_as_ref`: do not lint if other arm is not `None => None` (#15693)
Alexendoo Sep 17, 2025
80db273
Remove jujutsu directory from search tools.
Jarcho Sep 17, 2025
7a5f0bd
Remove jujutsu directory from search tools. (#15695)
samueltardieu Sep 17, 2025
a67fe9c
Do not look for `Cargo.toml` inside `target` (#15692)
Jarcho Sep 17, 2025
15ce209
test cases for option_if_let_else
dgulotta Sep 18, 2025
e1130b6
fix `option_if_let_else` when `Err` variant is ignored (#14429)
Manishearth Sep 18, 2025
a3c7f63
Remove automatic feature freeze comment (#15690)
blyxyas Sep 18, 2025
72fb9b2
Remove feature-freeze from gh templates
lukaslueg Sep 18, 2025
8428b16
Remove feature-freeze from gh templates (#15698)
samueltardieu Sep 18, 2025
68473ad
Check that `.unwrap_or(LITERAL)` doesn't trigger `unwrap_or_default`
samueltardieu Sep 18, 2025
ad21dff
Do not replace `.unwrap_or(vec![])` by `.unwrap_or_default()`
samueltardieu Sep 18, 2025
4a8b7ea
Do not replace `.unwrap_or(vec![])` by `.unwrap_or_default()` (#15699)
Jarcho Sep 18, 2025
4b109ed
`redundant_clone`: split iterator checks into `redundant_iter_cloned`…
blyxyas Sep 18, 2025
2d3efb0
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Sep 18, 2025
2c73502
Bump nightly version -> 2025-09-18
flip1995 Sep 18, 2025
6b14443
Bump Clippy version -> 0.1.92
flip1995 Sep 18, 2025
20ce69b
Rustup (#15704)
flip1995 Sep 18, 2025
1bfe3bc
Merge commit '20ce69b9a63bcd2756cd906fe0964d1e901e042a' into clippy-s…
flip1995 Sep 18, 2025
5d1619b
Update Cargo.lock
flip1995 Sep 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675"

[[package]]
name = "clippy"
version = "0.1.91"
version = "0.1.92"
dependencies = [
"anstream",
"askama",
Expand All @@ -595,7 +595,7 @@ dependencies = [

[[package]]
name = "clippy_config"
version = "0.1.91"
version = "0.1.92"
dependencies = [
"clippy_utils",
"itertools",
Expand All @@ -618,7 +618,7 @@ dependencies = [

[[package]]
name = "clippy_lints"
version = "0.1.91"
version = "0.1.92"
dependencies = [
"arrayvec",
"cargo_metadata 0.18.1",
Expand Down Expand Up @@ -649,7 +649,7 @@ dependencies = [

[[package]]
name = "clippy_utils"
version = "0.1.91"
version = "0.1.92"
dependencies = [
"arrayvec",
"itertools",
Expand Down Expand Up @@ -1051,7 +1051,7 @@ dependencies = [

[[package]]
name = "declare_clippy_lint"
version = "0.1.91"
version = "0.1.92"

[[package]]
name = "derive-where"
Expand Down
4 changes: 1 addition & 3 deletions src/tools/clippy/.github/ISSUE_TEMPLATE/new_lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: New lint suggestion
description: |
Suggest a new Clippy lint (currently not accepting new lints)
Check out the Clippy book for more information about the feature freeze.
description: Suggest a new Clippy lint.
labels: ["A-lint"]
body:
- type: markdown
Expand Down
4 changes: 0 additions & 4 deletions src/tools/clippy/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ order to get feedback.

Delete this line and everything above before opening your PR.

Note that we are currently not taking in new PRs that add new lints. We are in a
feature freeze. Check out the book for more information. If you open a
feature-adding pull request, its review will be delayed.

---

*Please write a short comment explaining your change (or "none" for internal only changes)*
Expand Down
45 changes: 0 additions & 45 deletions src/tools/clippy/.github/workflows/feature_freeze.yml

This file was deleted.

3 changes: 3 additions & 0 deletions src/tools/clippy/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ helper.txt

# mdbook generated output
/book/book

# Remove jujutsu directory from search tools
.jj
148 changes: 147 additions & 1 deletion src/tools/clippy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,152 @@ document.

## Unreleased / Beta / In Rust Nightly

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

## Rust 1.90

Current stable, released 2025-09-18

[View all 118 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2025-06-13T15%3A55%3A04Z..2025-07-25T13%3A24%3A00Z+base%3Amaster)

Note: This Clippy release does not introduce many new lints and is focused entirely on bug fixes — see
[#15086](https://github.com/rust-lang/rust-clippy/issues/15086) for more details.

## New Lints

* Added [`manual_is_multiple_of`] to `complexity` [#14292](https://github.com/rust-lang/rust-clippy/pull/14292)
* Added [`doc_broken_link`] to `pedantic` [#13696](https://github.com/rust-lang/rust-clippy/pull/13696)

### Moves and Deprecations

* Move [`uninlined_format_args`] to `pedantic` (from `style`, now allow-by-default) [#15287](https://github.com/rust-lang/rust-clippy/pull/15287)

### Enhancements

* [`or_fun_call`] now lints `Option::get_or_insert`, `Result::map_or`, `Option/Result::and` methods
[#15071](https://github.com/rust-lang/rust-clippy/pull/15071)
[#15073](https://github.com/rust-lang/rust-clippy/pull/15073)
[#15074](https://github.com/rust-lang/rust-clippy/pull/15074)
* [`incompatible_msrv`] now recognizes types exceeding MSRV
[#15296](https://github.com/rust-lang/rust-clippy/pull/15296)
* [`incompatible_msrv`] now checks the right MSRV when in a `const` context
[#15297](https://github.com/rust-lang/rust-clippy/pull/15297)
* [`zero_ptr`] now lints in `const` context as well
[#15152](https://github.com/rust-lang/rust-clippy/pull/15152)
* [`map_identity`],[`flat_map_identity`] now recognizes `|[x, y]| [x, y]` as an identity function
[#15229](https://github.com/rust-lang/rust-clippy/pull/15229)
* [`exit`] no longer fails on the main function when using `--test` or `--all-targets` flag
[#15222](https://github.com/rust-lang/rust-clippy/pull/15222)

### False Positive Fixes

* [`if_then_some_else_none`] fixed FP when require type coercion
[#15267](https://github.com/rust-lang/rust-clippy/pull/15267)
* [`module_name_repetitions`] fixed FP on exported macros
[#15319](https://github.com/rust-lang/rust-clippy/pull/15319)
* [`unused_async`] fixed FP on function with `todo!`
[#15308](https://github.com/rust-lang/rust-clippy/pull/15308)
* [`useless_attribute`] fixed FP when using `#[expect(redundant_imports)]` and similar lint attributes
on `use` statements
[#15318](https://github.com/rust-lang/rust-clippy/pull/15318)
* [`pattern_type_mismatch`] fixed FP in external macro
[#15306](https://github.com/rust-lang/rust-clippy/pull/15306)
* [`large_enum_variant`] fixed FP by not suggesting `Box` in `no_std` mode
[#15241](https://github.com/rust-lang/rust-clippy/pull/15241)
* [`missing_inline_in_public_items`] fixed FP on functions with `extern`
[#15313](https://github.com/rust-lang/rust-clippy/pull/15313)
* [`needless_range_loop`] fixed FP on array literals
[#15314](https://github.com/rust-lang/rust-clippy/pull/15314)
* [`ptr_as_ptr`] fixed wrong suggestions with turbo fish
[#15289](https://github.com/rust-lang/rust-clippy/pull/15289)
* [`range_plus_one`], [`range_minus_one`] fixed FP by restricting lint to cases where it is safe
to switch the range type
[#14432](https://github.com/rust-lang/rust-clippy/pull/14432)
* [`ptr_arg`] fixed FP with underscore binding to `&T` or `&mut T` argument
[#15105](https://github.com/rust-lang/rust-clippy/pull/15105)
* [`unsafe_derive_deserialize`] fixed FP caused by the standard library's `pin!()` macro
[#15137](https://github.com/rust-lang/rust-clippy/pull/15137)
* [`unused_trait_names`] fixed FP in macros
[#14947](https://github.com/rust-lang/rust-clippy/pull/14947)
* [`expect_fun_call`] fixed invalid suggestions
[#15122](https://github.com/rust-lang/rust-clippy/pull/15122)
* [`manual_is_multiple_of`] fixed various false positives
[#15205](https://github.com/rust-lang/rust-clippy/pull/15205)
* [`manual_assert`] fixed wrong suggestions for macros
[#15264](https://github.com/rust-lang/rust-clippy/pull/15264)
* [`expect_used`] fixed false negative when meeting `Option::ok().expect`
[#15253](https://github.com/rust-lang/rust-clippy/pull/15253)
* [`manual_abs_diff`] fixed wrong suggestions behind refs
[#15265](https://github.com/rust-lang/rust-clippy/pull/15265)
* [`approx_constant`] fixed FP with overly precise literals and non trivially formatted numerals
[#15236](https://github.com/rust-lang/rust-clippy/pull/15236)
* [`arithmetic_side_effects`] fixed FP on `NonZeroU*.get() - 1`
[#15238](https://github.com/rust-lang/rust-clippy/pull/15238)
* [`legacy_numeric_constants`] fixed suggestion when call is inside parentheses
[#15191](https://github.com/rust-lang/rust-clippy/pull/15191)
* [`manual_is_variant_and`] fixed inverted suggestions that could lead to code with different semantics
[#15206](https://github.com/rust-lang/rust-clippy/pull/15206)
* [`unnecessary_map_or`] fixed FP by not proposing to replace `map_or` call when types wouldn't be correct
[#15181](https://github.com/rust-lang/rust-clippy/pull/15181)
* [`return_and_then`] fixed FP in case of a partially used expression
[#15115](https://github.com/rust-lang/rust-clippy/pull/15115)
* [`manual_let_else`] fixed FP with binding subpattern with unused name
[#15118](https://github.com/rust-lang/rust-clippy/pull/15118)
* [`suboptimal_flops`] fixed FP with ambiguous float types in mul_add suggestions
[#15133](https://github.com/rust-lang/rust-clippy/pull/15133)
* [`borrow_as_ptr`] fixed FP by not removing cast to trait object pointer
[#15145](https://github.com/rust-lang/rust-clippy/pull/15145)
* [`unnecessary_operation`] fixed FP by not removing casts if they are useful to type the expression
[#15182](https://github.com/rust-lang/rust-clippy/pull/15182)
* [`empty_loop`] fixed FP on intrinsic function declaration
[#15201](https://github.com/rust-lang/rust-clippy/pull/15201)
* [`doc_nested_refdefs`] fixed FP where task lists are reported as refdefs
[#15146](https://github.com/rust-lang/rust-clippy/pull/15146)
* [`std_instead_of_core`] fixed FP when not all items come from the new crate
[#15165](https://github.com/rust-lang/rust-clippy/pull/15165)
* [`swap_with_temporary`] fixed FP leading to different semantics being suggested
[#15172](https://github.com/rust-lang/rust-clippy/pull/15172)
* [`cast_possible_truncation`] fixed FP by not giving suggestions inside const context
[#15164](https://github.com/rust-lang/rust-clippy/pull/15164)
* [`missing_panics_doc`] fixed FP by allowing unwrap() and expect()s in const-only contexts
[#15170](https://github.com/rust-lang/rust-clippy/pull/15170)
* [`disallowed_script_idents`] fixed FP on identifiers with `_`
[#15123](https://github.com/rust-lang/rust-clippy/pull/15123)
* [`wildcard_enum_match_arm`] fixed wrong suggestions with raw identifiers
[#15093](https://github.com/rust-lang/rust-clippy/pull/15093)
* [`borrow_deref_ref`] fixed FP by not proposing replacing a reborrow when the reborrow is itself mutably borrowed
[#14967](https://github.com/rust-lang/rust-clippy/pull/14967)
* [`manual_ok_err`] fixed wrong suggestions with references
[#15053](https://github.com/rust-lang/rust-clippy/pull/15053)
* [`identity_op`] fixed FP when encountering `Default::default()`
[#15028](https://github.com/rust-lang/rust-clippy/pull/15028)
* [`exhaustive_structs`] fixed FP on structs with default valued field
[#15022](https://github.com/rust-lang/rust-clippy/pull/15022)
* [`collapsible_else_if`] fixed FP on conditionally compiled stmt
[#14906](https://github.com/rust-lang/rust-clippy/pull/14906)
* [`missing_const_for_fn`] fixed FP by checking MSRV before emitting lint on function containing
non-`Sized` trait bounds
[#15080](https://github.com/rust-lang/rust-clippy/pull/15080)
* [`question_mark`] fixed FP when else branch of let-else contains `#[cfg]`
[#15082](https://github.com/rust-lang/rust-clippy/pull/15082)

### ICE Fixes

* [`single_match`] fixed ICE with deref patterns and string literals
[#15124](https://github.com/rust-lang/rust-clippy/pull/15124)
* [`needless_doctest_main`] fixed panic when doctest is invalid
[#15052](https://github.com/rust-lang/rust-clippy/pull/15052)
* [`zero_sized_map_values`] do not attempt to compute size of a type with escaping lifetimes
[#15434](https://github.com/rust-lang/rust-clippy/pull/15434)

### Documentation Improvements

* [`manual_is_variant_and`] improved documentation to include equality comparison patterns
[#15239](https://github.com/rust-lang/rust-clippy/pull/15239)
* [`uninlined_format_args`] improved documentation with example of how to fix a `{:?}` parameter
[#15228](https://github.com/rust-lang/rust-clippy/pull/15228)
* [`undocumented_unsafe_blocks`] improved documentation wording
[#15213](https://github.com/rust-lang/rust-clippy/pull/15213)

## Rust 1.89

Expand Down Expand Up @@ -6408,6 +6553,7 @@ Released 2018-09-13
[`redundant_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_feature_names
[`redundant_field_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
[`redundant_guards`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
[`redundant_iter_cloned`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_iter_cloned
[`redundant_locals`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_locals
[`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
[`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy"
version = "0.1.91"
version = "0.1.92"
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
Expand Down
4 changes: 0 additions & 4 deletions src/tools/clippy/book/src/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Clippy

[### IMPORTANT NOTE FOR CONTRIBUTORS ================](development/feature_freeze.md)

----

[![License: MIT OR Apache-2.0](https://img.shields.io/crates/l/clippy.svg)](https://github.com/rust-lang/rust-clippy#license)

A collection of lints to catch common mistakes and improve your
Expand Down
1 change: 0 additions & 1 deletion src/tools/clippy/book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
- [GitLab CI](continuous_integration/gitlab.md)
- [Travis CI](continuous_integration/travis.md)
- [Development](development/README.md)
- [IMPORTANT: FEATURE FREEZE](development/feature_freeze.md)
- [Basics](development/basics.md)
- [Adding Lints](development/adding_lints.md)
- [Defining Lints](development/defining_lints.md)
Expand Down
3 changes: 0 additions & 3 deletions src/tools/clippy/book/src/development/adding_lints.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Adding a new lint

[### IMPORTANT NOTE FOR CONTRIBUTORS ================](feature_freeze.md)


You are probably here because you want to add a new lint to Clippy. If this is
the first time you're contributing to Clippy, this document guides you through
creating an example lint from scratch.
Expand Down
55 changes: 0 additions & 55 deletions src/tools/clippy/book/src/development/feature_freeze.md

This file was deleted.

2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy_config"
version = "0.1.91"
version = "0.1.92"
edition = "2024"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_lints/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy_lints"
version = "0.1.91"
version = "0.1.92"
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub(super) fn check(cx: &EarlyContext<'_>, item: &Item, attrs: &[Attribute]) {
sym::ambiguous_glob_reexports
| sym::dead_code
| sym::deprecated
| sym::deprecated_in_future
| sym::hidden_glob_reexports
| sym::unreachable_pub
| sym::unused
Expand Down
Loading
Loading