]> git.lizzy.rs Git - rust.git/commit
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)
commit7b2020f2c3f51de0dd4dcfe4a107673eda6f25e7
tree75adf0b0609e8c8185568cd151b6b1ef3a745f74
parent3225870191f7e6b601d70fa5aa08617eb04b170b
parentcb918e1a831782d6072a0b93dd57614cb9c2d961
auto merge of #6245 : youknowone/rust/match-range-static, r=graydon

Fix unintended error problem of:
````
static s: int = 1;
static e: int = 42;

fn main() {
    match 7 {
        s..e => (),
         ^~                 error: expected `=>` but found `..`
        _ => (),
    }
}
````
src/libsyntax/parse/parser.rs