Skip to content

Conversation

@samueltardieu
Copy link
Member

@samueltardieu samueltardieu commented Mar 22, 2025

This PR enables the new ability to collapse if statements containing comments (without losing them) in Clippy sources, excluding tests and lintcheck, where the default behaviour (no collapsing in presence of comments) is preserved.

To be applied after #14231. When it is applied, #14455 will be marked as ready for review, then #14228 afterwards.

changelog: none

r? ghost

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Mar 22, 2025
@samueltardieu samueltardieu marked this pull request as ready for review March 23, 2025 17:32
@samueltardieu
Copy link
Member Author

r? @flip1995
(since this was a split off #14231)

@samueltardieu
Copy link
Member Author

Rebased

@samueltardieu
Copy link
Member Author

I've repushed with the formatting issue you've identified @flip1995. I'm surprised that rustfmt doesn't reformat if let chains, I thought that had been solved a few months ago.

@flip1995
Copy link
Member

Yeah, for some reason sometimes it works and sometimes it doesn't 🤷

@flip1995 flip1995 added this pull request to the merge queue Mar 25, 2025
Merged via the queue into rust-lang:master with commit d09e658 Mar 25, 2025
11 checks passed
@samueltardieu samueltardieu deleted the apply-collapsible-if branch March 25, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants