You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…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
---
Fixesrust-lang#10167
changelog: [`reversed_empty_ranges`]: Update and clarify documentation
This code fails to compile:
...but this (seemingly) logically equivalent does compile:
The text was updated successfully, but these errors were encountered: