]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #6245 : youknowone/rust/match-range-static, r=graydon
authorbors <bors@rust-lang.org>
Tue, 7 May 2013 07:18:37 +0000 (00:18 -0700)
committerbors <bors@rust-lang.org>
Tue, 7 May 2013 07:18:37 +0000 (00:18 -0700)
Fix unintended error problem of:
````
static s: int = 1;
static e: int = 42;

fn main() {
    match 7 {
        s..e => (),
         ^~                 error: expected `=>` but found `..`
        _ => (),
    }
}
````

1  2 
src/libsyntax/parse/parser.rs

Simple merge