This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 19b79c4
committed
Auto merge of rust-lang#10168 - blyxyas:fix_reversed_empty_ranges, r=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 documentation1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments