Clippy subtree update#157779
Open
flip1995 wants to merge 165 commits into
Open
Conversation
the `else` block of `let...else` binding.
Clarify the rationale for fn_params_excessive_bools, document the main replacement patterns, and note that max-fn-params-bools accepts 0 to lint any bool parameter.
*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust-clippy/pull/17066)* Violets are red, Roses are blue, This month is RustWeek, And borrow-checkers too. ---- Unfortunately, no nominations from the previous one 😿 So take it [from 1.94](rust-lang/rust-clippy#16653) <img width="1032" height="1548" alt="image" src="https://github.com/user-attachments/assets/02ba1c12-e712-4d90-8914-ed3a404b094c" /> Pochoclo from @Phosphorus-M doing cat things — because pawsitivity and important meowtters come first 😸 ---- Cats for the next release can be nominated in the comments🙏🙏🙏 changelog: none r? flip1995
Instead of first searching for a '=' and then comparing the slice before, try to match directly and see what's left over. This is probably not at all impactful or even noticeable except for unimaginably huge command lines... changelog:none
*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust-clippy/pull/16257)* This adds a Clippy lint for the possible confusing behaviour pointed out in rust-lang#150084 and rust-lang#111514, and discussed in rust-lang/libs-team#304. While no consensus have been reached in the API Change Proposal linked above I thought that it would still make sense to add a Clippy lint for the time being. Open questions: - Which group should it be in? - Should it give warnings for `AsciiChar`, `Ipv4Addr` and `Ipv6Addr`? (Currently these will always panic when running over the max value) changelog: new lint: [`for_unbounded_range`]
Improve the `fn_params_excessive_bools` docs to better explain why boolean parameters hurt call-site readability and to describe the main replacement patterns: enums for mode selection, separate named operations for distinct behaviors, and structs/options types for grouped flags. This also documents that `max-fn-params-bools = 0` is valid and lints any function with a bool parameter. changelog: [fn_params_excessive_bools]: improve documentation
allows us to do less work, and also enables the next commit
- use `span_lint_and_then`, do more things inside its closure - reuse `SyntaxContext` - use symbols instead of strs
- don't put the suggestion into the main lint message - use verbose suggestions, to avoid awkward span highlighting
- don't put the suggestion into the main lint message - use verbose suggestions, to avoid awkward span highlighting changelog: [`redundant_pattern_match`]: improve suggestions
changelog: none r? ada4a
*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust-clippy/pull/17086)* changelog: none r? ada4a
changelog: none r? ada4a
changelog: none r? ada4a
I've collected too big of a backlog already...
Collaborator
|
Member
|
@bors r+ p=2 rollup=never |
Contributor
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Jun 12, 2026
Clippy subtree update r? Manishearth Cargo.lock update due to ui_test bump.
Contributor
|
💔 Test for 6782e23 failed: CI. Failed job:
|
Collaborator
|
A job failed! Check out the build log: (web) (plain enhanced) (plain) Click to see the possible cause of the failure (guessed by this bot) |
Member
|
@bors retry |
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Jun 12, 2026
Clippy subtree update r? Manishearth Cargo.lock update due to ui_test bump.
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
💔 Test for d28c648 failed: CI. Failed job:
|
Contributor
|
Spurious |
Contributor
|
@bors p=6 |
Contributor
|
⌛ Testing commit 97d2da8 with merge a1e52fc... Workflow: https://github.com/rust-lang/rust/actions/runs/27415339169 |
rust-bors Bot
pushed a commit
that referenced
this pull request
Jun 12, 2026
Clippy subtree update r? Manishearth Cargo.lock update due to ui_test bump.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
r? Manishearth
Cargo.lock update due to ui_test bump.