Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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`
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant