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

Add a logical lint pass for identical expressions on both sides of operators #9289

Closed
kud1ing opened this issue Sep 18, 2013 · 1 comment
Closed

Comments

@kud1ing
Copy link

kud1ing commented Sep 18, 2013

This bug seems to present in the real world: http://www.viva64.com/en/examples/v501/

@kud1ing
Copy link
Author

kud1ing commented Sep 18, 2013

Let's discuss first

@kud1ing kud1ing closed this as completed Sep 18, 2013
Jarcho pushed a commit to Jarcho/rust that referenced this issue Aug 29, 2022
Extend `if_then_some_else_none` to also suggest `bool::then_some`

Closes rust-lang#9094.

changelog: Extend `if_then_some_else_none` to also suggest `bool::then_some`
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

No branches or pull requests

1 participant