-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Inconsistency between destructuring assignment and pattern matching with tuples #5689
Comments
Dup of #4384 |
tesuji
pushed a commit
to tesuji/rustc
that referenced
this issue
Jun 9, 2020
reversed_empty_ranges: avoid linting N..N except in for loop arguments changelog: [`reversed_empty_ranges`]: avoid linting N..N except in for loop arguments r? @yaahc Fixes rust-lang#5689
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jan 12, 2023
…or` loop. Reading the documentation for the lint, one could expect that the lint works in all cases that `X == Y`. This is false. While the lint was updated, the documentation wasn't. More information about the `N..N` problem in rust-lang#5689 and rust-lang#5628
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jan 12, 2023
…dswij [rust-lang#10167] Clarify that the lint only works if x eq. y in a `for` loop. Reading the documentation for the lint, one could expect that the lint works in all cases that `X == Y`. This is false. While the lint was updated, the documentation wasn't. More information about the `N..N` problem in rust-lang#5689 and rust-lang#5628 --- Fixes rust-lang#10167 changelog: [`reversed_empty_ranges`]: Update and clarify documentation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code fails to compile:
...but this (seemingly) logically equivalent does compile:
The text was updated successfully, but these errors were encountered: