Skip to content

Conversation

thestinger
Copy link
Contributor

No description provided.

@thestinger thestinger closed this Jan 29, 2014
@thestinger thestinger reopened this Jan 29, 2014
@bors bors closed this Jan 31, 2014
@bors bors merged commit e532e8d into rust-lang:master Jan 31, 2014
@thestinger thestinger deleted the intrinsic branch February 8, 2014 04:58
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 28, 2023
[`redundant_pattern_matching`]: lint `if let true`, `while let true`, `matches!(.., true)`

Closes rust-lang#11917

This could also lint e.g. `if let (true, true, false) = (a, b, c)` and suggest `if a && b && c`, but that's a change in semantics (going from eager to lazy, so I just left it out for now. Could be a future improvement.

changelog: [`redundant_pattern_matching`]: lint `if let true`, `while let true`, `matches!(.., true)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants