Skip to content
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

remove a layer of indirection from most intrinsics #11917

Merged
merged 1 commit into from
Jan 31, 2014
Merged

remove a layer of indirection from most intrinsics #11917

merged 1 commit into from
Jan 31, 2014

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