-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Clippy subtree update #144449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Clippy subtree update #144449
Changes from all commits
Commits
Show all changes
150 commits
Select commit
Hold shift + click to select a range
96ae10e
Document changing `clippy::msrv` with a feature gate
samueltardieu e236bfc
Add a note to `incompatible_msrv` to suggest feature gating the MSRV
samueltardieu f2d4973
Use public `core` items for testing
samueltardieu 205e313
Do not warn about feature-enabled items
samueltardieu e3ec0d2
Check MSRV for any entity, not just function and method calls
samueltardieu 68ea461
Add TODO for const stability MSRV checking
samueltardieu d66e4f6
Restrict the cases where Clippy proposes to switch range types
samueltardieu 15fc993
Refactor `range_plus_one` and `range_minus_one` lints
samueltardieu 07e2d96
Fix expect_fun_call producing invalid suggestions
sethdusek ba4253b
Fix capacity overflow in `single_match` with deref patterns
notriddle 5f49cf8
fix: `unused_trait_names` FP when `as` name is from macro input
profetia e0d9cfb
Remove `unused_trait_names`'s support inside macros
profetia 08f5eba
Mark unsuffixed type literals are type uncertain by default
samueltardieu 83148cb
Do not always consider parameters of closures as type-certain
samueltardieu a8ab02c
Fix several issues with `manual_is_multiple_of`
samueltardieu 9d7637b
clippy: conditions are no longer wrapped in `DropTemps`
dianne cc9d96c
precommit test
klensy addf309
also lint method calls inside map_or first arg
klensy 86a1496
dogfood: fix few lint issues
klensy a743efc
Fix few typos
alex-semenyuk 6b6f35e
Add uninlined_format_args example: `:?` formatting
AljoschaMeyer b1d1762
Reduce clippy lints page size
GuillaumeGomez 24a4ad5
feat(lexer): Allow including frontmatter with 'tokenize'
epage 823ee8a
Cleanup feature_freeze
alex-semenyuk 4e614bf
Merge commit 'cdbbf3afda0b1bf51568b368f629b1d828507f98' into clippy-s…
flip1995 e30313c
fix `legacy_numeric_constants` suggestion when call is wrapped in parens
ComputerDruid ae6416a
add extra legacy_numeric_constants test cases
samueltardieu 88ee494
cleanup legacy_numeric_constants
ComputerDruid 37ddd9f
refactor legacy_numeric_constants to check calls instead of paths
samueltardieu 9457d64
refactor legacy_numeric_constants to use multipart suggestion
samueltardieu e29e353
Cleanup feature_freeze workflow (#15231)
blyxyas 4dcaa80
Fix few typos (#15218)
llogiq df5a0ee
or_fun_call: lint method calls inside map_or first arg (#15074)
llogiq a745e2c
fix(arithmetic_side_effects): don't warn on `NonZeroU*.get() - 1`
ada4a b5e701e
`arithmetic_side_effects`: don't warn on `NonZeroU*.get() - 1` (#15238)
blyxyas 488f4dd
fix `legacy_numeric_constants` suggestion when call is wrapped in par…
samueltardieu a1844ec
Rollup merge of #143708 - epage:pretty, r=compiler-errors
matthiaskrgr e2270bb
Reduce clippy lints page size (#15235)
samueltardieu d5b10f0
Use `$RUSTC` instead of `rustc` to get version if var is available
samueltardieu 1d1b97d
fix false negative of `expect_used`
relaxcn 093b6e5
Fix approx_const for some new cases
teofr 3d7188d
Add `uninlined_format_args` example for `{:?}` (#15228)
dswij 0cc6061
clippy: fix test filtering when TESTNAME is empty
RalfJung 2ecbf82
fix clippy_test_deps workspace handling
RalfJung 4154387
Use `Ty::is_fn` instead of manually matching on `TyKind`
ada4a e610584
`{flat_,}map_identity`: also recognize `|[x, y]| [x, y]`
ada4a 3c3ee9b
`{flat_,}map_identity`: recognize `|[x, y]| [x, y]` as an identity fu…
y21 7e2d26f
Fix `approx_const` for some new cases (#15236)
blyxyas 3187aa7
Fix clippy & rustdoc-json
JonathanBrouwer 519ad87
Auto merge of #143213 - dianne:lower-cond-tweaks, r=cjgillot
bors 41510cc
Rollup merge of #143825 - RalfJung:clippy-test-filter, r=llogiq
matthiaskrgr 9d96404
fix: `manual_abs_diff` suggests wrongly behind refs
profetia de43d8c
Remove hir::AssocItemKind.
cjgillot 8510965
Retire hir::*ItemRef.
cjgillot b4fc33a
Lint: Improve manual_is_variant_and to support equality comparison
krikera 6f2567d
Update manual_is_variant_and documentation to include equality compar…
blyxyas 901ab5b
fix: `manual_assert` suggests wrongly for macros
profetia 434fb31
Auto merge of #143357 - cjgillot:no-assoc-item-kind, r=compiler-errors
bors cffeac7
Auto merge of #143779 - JonathanBrouwer:automatically_derived_parser,…
bors 461572a
Merge from rustc
43f1891
Fix `manual_abs_diff` suggests wrongly behind refs (#15265)
Jarcho d9acd91
fix false negative of `expect_used` (#15253)
Jarcho ba947c5
Fix `manual_assert` suggests wrongly for macros (#15264)
samueltardieu 1c64211
Fix manual is multiple of (#15205)
Jarcho 06e6927
`ineffective_open_options`: refactor, don't use `method_call`
Jarcho 75c330b
Fix `ptr_arg` suggests changes when it's actually better not to bother
immersum ff1ae2b
Reword mismatched-lifetime-syntaxes text based on feedback
shepmaster fcd064d
expect_fun_call: only lint const fn's if they're not inside a const c…
sethdusek 104e265
`ineffective_open_options`: don't subtract a constant `BytePos`
Jarcho 8d6de0b
Fix expect_fun_call producing invalid suggestions (#15122)
samueltardieu fdf37fc
`ineffective_open_options`: remove `method_call` use (#15271)
samueltardieu 7796773
`useless_conversion`: move all the impl to the same lint pass
Jarcho f4b827a
Auto merge of #143745 - flip1995:clippy-subtree-update, r=Manishearth
bors ba8da7a
`useless_conversion`: move all the impl to the same lint pass (#15274)
samueltardieu bfc4d17
Add more tests, clean up code
notriddle c20faa0
fix `needless_for_each` suggests wrongly for macros
relaxcn 7823aac
Merge from rustc
0bf4d5a
fix suggestion causes error of `needless_for_each` (#15262)
Jarcho 016e534
gh-pages: reduce page size by skipping spaces
klensy e1be062
gh-pages: reduce page size by skipping spaces (#15278)
samueltardieu fc44198
Use `Ty::is_fn` instead of manually matching on `TyKind` (#15089)
Alexendoo 038295a
fix: `filter_map_bool_then` wrongly showed macro definition in sugges…
profetia ae1d3ae
Use `$RUSTC` instead of `rustc` to get version if var is available (#…
flip1995 413f8db
future-incompat lints: don't link to the nightly edition-guide version
dianne 21943a9
Don't trigger `unused_trait_names` in macros (#14947)
flip1995 b49e360
`unsafe_derive_deserialize`: do not consider `pin!()` as `unsafe`
samueltardieu ad97abc
`unsafe_derive_deserialize`: do not consider `pin!()` as `unsafe` (#1…
samueltardieu 32263f5
Move `uninlined_format_args` to `pedantic`
Alexendoo 39a1d52
Get myself off assignment rotation
samueltardieu 041a0f6
Get myself off assignment rotation (#15288)
samueltardieu 8d941d2
fix: `never_loop` forget to remove break in suggestion
profetia df529eb
fix: `ptr_as_ptr` suggests wrongly with turbo fish
profetia 786330e
Fix `ptr_arg` suggests changes when it's actually better not to bothe…
Jarcho 2a4c83d
Move `uninlined_format_args` to `pedantic` (#15287)
dswij e113e66
Propose to exchange ranges only when it is safe to do so (#14432)
Jarcho c0dc3b6
Various improvements to the `incompatible_msrv` lint (#14433)
Jarcho ed176b7
Fix `ptr_as_ptr` suggests wrongly with turbo fish (#15289)
llogiq b7caf75
Improve path segment joining.
nnethercote 0e66490
Rollup merge of #143922 - nnethercote:join_path, r=petrochenkov
fmease a6be68a
Rollup merge of #143914 - shepmaster:mismatched-lifetime-syntaxes-rew…
matthiaskrgr 11bfeca
Warn about types not meeting MSRV
samueltardieu 19f8c50
parse `const trait Trait`
fee1-dead e62e27b
Warn about types not meeting MSRV (#15296)
Jarcho 167ac05
Warn about `const` instability wrt MSRV
samueltardieu 11e3ae3
Auto merge of #143879 - fee1-dead-contrib:push-lrlpoouyqqry, r=fmease
bors e81009d
Include ErrorGuaranteed in StableSince::Err.
cjgillot b2c4e6d
fix: ignore pattern_type_mismatch when external macro owns the match
kristof-mattei 1df3b96
Fix `empty_with_brackets` span handling.
Jarcho cca924b
Simplify `must_use_candidate` spans.
Jarcho ae8ff77
Warn about `const` instability wrt MSRV (#15297)
Jarcho 5acb1d4
Fix `empty_with_brackets` span handling (#15311)
dswij 048a64a
Remove unused option fir LEVEL_FILTERS_DEFAULT
alex-semenyuk 6cf00e9
fix: `needless_range_loop` FP on array literals
profetia b916841
Remove unused option `None` for `LEVEL_FILTERS_DEFAULT` (#15315)
Alexendoo f85cdbb
Simplify `must_use_candidate` spans (#15310)
Alexendoo 17968e7
Fix `needless_range_loop` FP on array literals (#15314)
llogiq fd7076b
Fix `filter_map_bool_then` wrongly suggests macro definitions (#15048)
Alexendoo 75811df
fix: `missing_inline_in_public_items` FP on functions with `extern`
profetia 72243f4
Fix `missing_inline_in_public_items` FP on functions with `extern` (#…
y21 6543a09
Fix `never_loop` forget to remove `break` in suggestion (#15064)
blyxyas 56de455
Fix capacity overflow in `single_match` with deref patterns (#15124)
blyxyas 1b88319
fix: `if_then_some_else_none` FP when require type coercion
profetia b738d96
Improve Help Message in `large_enum_variant to satisfy` `#[no_std]`
lkshayb c8e333c
Fixed issue #15192 (#15241)
y21 257b024
Unquerify maybe_unused_trait_imports.
cjgillot 0b16881
fix: ignore pattern_type_mismatch when external macro owns the match …
dswij 50f36c0
clippy: make tests work in stage 1
RalfJung 92111dc
Fix false positive in useless_attribute with redundant_imports
krikera d4dea4b
Fix false positive in useless_attribute with redundant_imports (#15318)
y21 bebae76
fix: `module_name_repetitions` FP on exported macros
profetia 9738031
Rollup merge of #144027 - RalfJung:clippy, r=Mark-Simulacrum
jieyouxu 3ed170f
Rollup merge of #143373 - cjgillot:bare-unused-trait-imports, r=petro…
matthiaskrgr 6a87804
fix: `unused_async` FP on function with `todo!`
profetia e07a4ee
Ports `#[macro_use]` and `#[macro_escape]` to the new attribute parsi…
JonathanBrouwer b2c8c02
Fix `unused_async` FP on function with `todo!` (#15308)
Alexendoo 8ad5c67
Fix `module_name_repetitions` FP on exported macros (#15319)
blyxyas ddf9b37
Remove useless lifetime parameter.
cjgillot 55be3c2
Remove "Known problems" section for `clippy::redundant_closure`
alex-semenyuk 5cd24d7
Correct help message for `arc_with_non_send_sync`
marv7000 7d5833f
Correct help message for `arc_with_non_send_sync` (#15332)
y21 49e0ae0
Rollup merge of #144014 - dianne:edition-guide-links, r=estebank
fmease 98205e6
Fix `if_then_some_else_none` FP when require type coercion (#15267)
blyxyas e85b1dd
Remove "Known problems" section for `clippy::redundant_closure` (#15331)
dswij c98e60a
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 d64eb62
Update .gitignore
flip1995 31baffd
Bump nightly version -> 2025-07-25
flip1995 d0fa808
Fix if_same_then_else with if let conditions
flip1995 1db89a1
Rustup (#15341)
flip1995 a0b18b3
Merge commit '1db89a1b1ca87f24bf22d0bad21d14b2d81b3e99' into clippy-s…
flip1995 9660038
Allow approx-constant in `x clippy library`
flip1995 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this is the right fix 🤔