librustc: Forbid `..` in range patterns.

This breaks code that looks like:

    match foo {
        1..3 => { ... }
    }

Instead, write:

    match foo {
        1...3 => { ... }
    }

Closes #17295.

[breaking-change]
This commit is contained in:
Patrick Walton 2014-09-26 21:13:20 -07:00 committed by Manish Goregaokar
parent 93be85f7d9
commit 5c2a580183
1 changed files with 1 additions and 1 deletions

View File

@ -3410,7 +3410,7 @@ may be specified with `..`. For example:
let message = match x {
0 | 1 => "not many",
2 .. 9 => "a few",
2 ... 9 => "a few",
_ => "lots"
};
```