-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Clippy subtree update #161416
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 #161416
Changes from all commits
Commits
Show all changes
124 commits
Select commit
Hold shift + click to select a range
ba2989f
fix duplicate diagnostics for msrv attrs
Gri-ffin e5af49b
fix: `needless_range_loop` suggests wrongly for nested index
profetia 8150f30
unnecessary_fold: lint folding over an Option's iterator
bugprone 413edb1
review: lint only literal or Copy-binding inits, refactor to early re…
bugprone 62deb46
review: use multipart_suggestion, reject closure params as init
bugprone a5a5326
review: add lintable nested inner test, rename to the _unfixable conv…
bugprone 02fe0f2
replace `box_patterns` usage with `deref_patterns`
cyrgani 284850a
support deref patterns in `unnested_or_patterns`
cyrgani 96522c7
ci: upgrade cache action from v4 to v5
xtqqczze 1aed118
ci: upgrade upload-artifact action from v4 to v7
xtqqczze a98a712
remove one weird version of let-else
CommanderStorm af7cef9
`mixed_read_write_in_expression`: fix broken link to reference
DanielEScherzer 351b044
Instead of representing trait errors as `Vec<Error>`, use a special type
ChayimFriedman2 f0b8245
feat: add `unnecessary_nonzero_get` lint
saberoueslati 3fba180
Merge commit '49e2f89a2605a9a340e04955fdbefa9803e6027a' into clippy-s…
flip1995 cff7b66
Fix `needless_range_loop` suggests wrongly for nested index (#16634)
ada4a e788c98
New lint/nonzero operators and methods (#17499)
samueltardieu e62982b
`needless_range_loop`: put `.enumerate()` into backticks
ada4a 76e7e12
Fix up `lang_items` import paths
mejrs f9b8ed6
Fix cast_possible_truncation suggested fix replaces macro with defini…
AnHoang-alex a415293
RELICENSE_DOCUMENTATION.md: add closing parenthesis, remove empty line
DanielEScherzer f7816ac
fix: set CARGO_TERM_COLOR=never in tests
martinthomson b982647
Fix funding link
makai410 3a9ae38
Fix funding link (#17534)
dswij 3317688
[cast_possible_truncation]: fix try_from suggestion expanding macros …
dswij 048350b
fix: set CARGO_TERM_COLOR=never in tests (#17533)
dswij 330f7a7
RELICENSE_DOCUMENTATION.md: add closing parenthesis, remove empty lin…
blyxyas 673a9d8
rename `HostEffectPredicate` to `HostEffectClause`
ada4a dded2db
ci: Bump Node.js 20 GitHub Actions (#17493)
flip1995 017ae33
needless_bool: lint the early-return guard form
sylvestre 64db4f3
needless_bool: lint the early-return guard form (#17185)
blyxyas 15e99c9
Build docs into the `main` directory
Kobzol 8fb0b61
Don't lint semicolon_if_nothing_returned in #[automatically_derived] …
111573a
Build docs into the `main` directory (#17541)
blyxyas d630cd5
Don't lint semicolon_if_nothing_returned in #[automatically_derived] …
dswij d33e59f
Suggest Result variant queries in unnecessary_map_or
fzlzjerry 2bc35de
Fix errors in tooling
JonathanBrouwer 7c10243
rename unecessary_nonzero_get to needless_nonzero_get
Gri-ffin b34942c
fix: avoid double_must_use in macro-generated code
saberoueslati 907246a
Rename `unecessary_nonzero_get` to `needless_nonzero_get` (#17538)
rustbot fb88aa4
Add myself back into review rotation
blyxyas fb16323
Add myself back into review rotation (#17551)
blyxyas 831dc91
Modify doc links to point to `main` instead of `master`
Kobzol 9a73ad8
Modify doc links to point to `main` instead of `master` (#17552)
rustbot 3013083
Clean-up `used_underscore_*`
Jarcho dc22b72
Rewrite and extend `used_underscore_*` tests.
Jarcho d2c4d15
replace `box_patterns` usage with `deref_patterns` (#17008)
blyxyas e16c281
fix ICE on unnecessary_rest_pattern for TyAlias
dswij 5682b1b
fix ICE on unnecessary_rest_pattern for TyAlias (#17557)
dswij 6555be8
clippy: Remove `eq_coroutine_kind`
nnethercote e525019
Fix duplicate diagnostics for `min_rust_version_invalid_attr` (#17396)
dswij f1f010d
old commented code cleanup
dswij 391c87a
fix: don't suppress lint when return expr has lint level attributes
Gri-ffin 282cfce
fix: allow WebAuthn in doc markdown
rajanpanth 366cabf
chore: remove one weird macro-version of let-else (#17496)
ada4a 41d6aaa
`mixed_read_write_in_expression`: fix broken link to reference (#17491)
ada4a 7a637d3
clenaup old commented code (#17559)
Manishearth 6369b49
Clean-up `used_underscore_*` (#17308)
llogiq 8b9906d
Add `option_zip_none` lint
Amit5601 a27486f
Avoid manual_assert_eq for byte slices
fyrsta7 2bddb2b
perf: run in_external_macro after the cheap checks in five hot lint p…
xmakro 59efa0e
fix `unfulfilled_lint_expectations` incorrectly triggered by `#[expec…
blyxyas b6841a2
Overhaul `CoroutineKind`
nnethercote 12e6ea9
Document byte slice limitation
fyrsta7 e084aed
Replace Gated with Option in the combined late pass
Alexendoo 474543b
fix: allow WebAuthn in doc markdown (#17568)
Alexendoo a11d780
perf: run in_external_macro after the cheap checks in five hot lint p…
Jarcho 8125bdd
`needless_range_loop`: put `.enumerate()` into backticks (#17413)
Manishearth 532d3e9
perf: resolve the callee before the expansion walk in VecArgs::hir
xmakro cfd2f88
review: skip mut accumulator bindings
bugprone af35cdf
perf: check first_node_in_macro before the root macro walk in useless…
xmakro b90fbe4
Replace Gated with Option in the combined late pass (#17579)
rustbot c78f888
perf: resolve the callee before the expansion walk in VecArgs::hir (#…
rustbot f077229
addressed review comment
saberoueslati b6a86cf
perf: check fn kind before the expansion walk in missing_const_for_th…
xmakro bc72fa3
Initial implementation of `FnPtr` trait
carbotaniuman 8d0cfc3
- implement `GenericArgs::terms` and use where needed.
LorrensP-2158466 23aabd0
use `next().and_then(as_type)` instead of `filter_map(as_type).nth(0)`
LorrensP-2158466 68bbbb3
perf: check fn kind before the expansion walk in missing_const_for_th…
rustbot aff2649
Trigger `integer_division_remainder_used` on `DivAssign`/`RemAssign`
lapla-cogito 136c8be
Changelog for Clippy 1.98
alex-semenyuk ea48a0f
enable next solver on nightly
Kivooeo a19ecd6
Add `option_zip_none` lint (#17465)
ada4a 6175f80
Trigger `integer_division_remainder_used` on `DivAssign`/`RemAssign` …
dswij 191ddc8
perf: check first_node_in_macro before the root macro walk in useless…
rustbot a1f614c
test: document default_trait_access suggestion as unfixable
rajanpanth 236bc3e
rename `ProjectionPredicate` to `ProjectionClause`
ada4a e1bb6a1
rename `TraitPredicate` to `TraitClause`
ada4a a184fd6
Changelog for Clippy 1.98 🍎 (#17578)
rustbot 3457f1c
Don't fire `manual_contains` when both sides use the slice element
lapla-cogito 0ba39a5
Don't fire `manual_contains` when both sides use the slice element (#…
blyxyas bdce5b9
fix: avoid double_must_use in macro-generated code (#17547)
blyxyas 6136fbd
Document and simplify Result bool matching
fzlzjerry bb5b5d0
Remove broken suggestion for blocks_in_conditions
a589700
Remove broken suggestion for blocks_in_conditions (#17127)
blyxyas 1495aea
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 791f0fa
Bump nightly version -> 2026-08-20
flip1995 9a2827d
Bump Clippy version -> 0.1.100
flip1995 0711379
Fix compile-test due to cargo update
flip1995 21baba9
Rustup (#17591)
flip1995 a025262
Install cargo tools with locked dependencies
konstin 53565a5
Remove changes that belong in other repositories
konstin 3bab727
Fix clippy/rustdoc
mejrs e8bea03
Suggest is_ok/is_err for boolean Result mappings (#17537)
Manishearth f7a1ce8
Fix tools
mejrs 980c299
Auto merge of #160619 - Kivooeo:enable-next-solver, r=lcnr,jdonszelma…
bors 4f4dd4c
Rollup merge of #161259 - mejrs:attr_structures, r=JonathanBrouwer
jhpratt 854598d
Rollup merge of #159899 - LorrensP-2158466:generic_args_terms, r=khyp…
jhpratt 6943d70
Make needless_bool less aggressive for chained `if`s
flip1995 b962eb8
Make needless_bool less aggressive for chained `if`s (#17598)
flip1995 a46af27
test: document default_trait_access suggestion as unfixable (#17569)
Alexendoo cde6ea0
unnecessary_fold: lint folding over an Option's iterator (#17445)
llogiq e57f468
Avoid `manual_assert_eq` for byte slice-like types (#17575)
llogiq 9ec68e8
Fix large_futures ICE with the next solver
tamird 62fa897
Rollup merge of #161428 - konstin:konsti/cargo-install-locked, r=folk…
JonathanBrouwer d6c913c
Refer to Zulip channel with its new name #t-clippy
miikkas cc7fb2d
Refer to Zulip channel with its new name #t-clippy (#17610)
Manishearth c58c138
Fix large_futures ICE with the next solver (#17601)
flip1995 1ec4db5
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 f9d42d4
Bump nightly version -> 2026-08-23
flip1995 7c06e7c
Rustup (#17607)
flip1995 c9d0ec7
Merge commit '7c06e7c42a8b56f9c1ac20e9ce34cadca0fce100' into clippy-s…
flip1995 aa2f8d2
Update Cargo.lock
flip1995 be9e487
Fix clippy::needless_bool fallout
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -372,13 +372,10 @@ pub(crate) fn is_ci_llvm_available_for_target( | |
| ("x86_64-unknown-netbsd", false), | ||
| ]; | ||
|
|
||
| if !supported_platforms.contains(&(&*host_target.triple, asserts)) | ||
| && (asserts || !supported_platforms.contains(&(&*host_target.triple, true))) | ||
| { | ||
| return false; | ||
| } | ||
|
|
||
| true | ||
| // Check if the host target is available with the requested assertions (true/false), | ||
| supported_platforms.contains(&(&*host_target.triple, asserts)) | ||
| // if it is not available for the given `asserts`, check if it is available with assertions (superset). | ||
| || supported_platforms.contains(&(&*host_target.triple, true)) | ||
|
Comment on lines
+375
to
+378
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be equivalent, but also way easier to understand. Please double check. |
||
| } | ||
|
|
||
| #[derive(Clone)] | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| github: rustfoundation | ||
| custom: [ "rust-lang.org/funding" ] | ||
| custom: [ "https://rust-lang.org/funding" ] |
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
This is basically
.has_errors(), but I wasn't sure whether the!.no_errors()was intentional, in case theErrorsenum is extended in the future 🤷 Or ifHasErrors(vec![])with an empty vec should also not be considered.View changes since the review