Skip to content

Commit dd53768

Browse files
authored
Rollup merge of #72107 - GuillaumeGomez:cleanup-e0579, r=Dylan-DPC
Clean up E0579 explanation r? @Dylan-DPC
2 parents 400a9ba + 806f09c commit dd53768

File tree

1 file changed

+6
-4
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+6
-4
lines changed

src/librustc_error_codes/error_codes/E0579.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
When matching against an exclusive range, the compiler verifies that the range
2-
is non-empty. Exclusive range patterns include the start point but not the end
3-
point, so this is equivalent to requiring the start of the range to be less
4-
than the end of the range.
1+
A lower range wasn't less than the upper range.
52

63
Erroneous code example:
74

@@ -17,3 +14,8 @@ fn main() {
1714
}
1815
}
1916
```
17+
18+
When matching against an exclusive range, the compiler verifies that the range
19+
is non-empty. Exclusive range patterns include the start point but not the end
20+
point, so this is equivalent to requiring the start of the range to be less
21+
than the end of the range.

0 commit comments

Comments
 (0)