diff options
| author | bors <bors@rust-lang.org> | 2013-03-11 04:27:48 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-11 04:27:48 -0700 |
| commit | 51cdca0bf0d3efc554c1815df9306ea10e881a14 (patch) | |
| tree | 250354cf3cd8fe9af0de4e0d8434c99a50742c75 /src/libsyntax/ast.rs | |
| parent | 58618fb8cfd791a930261ff68ae6bc77e0bc4412 (diff) | |
| parent | 070137ce905d0177e8d112385f1d8dc7b2407006 (diff) | |
| download | rust-51cdca0bf0d3efc554c1815df9306ea10e881a14.tar.gz rust-51cdca0bf0d3efc554c1815df9306ea10e881a14.zip | |
auto merge of #5122 : sanxiyn/rust/vec-match-tail-2, r=nikomatsakis
Incorporated @nikomatsakis's comments from #4748. Fix #4635.
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 3782208eb85..f3e73823f69 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -309,7 +309,9 @@ pub enum pat_ { pat_region(@pat), // borrowed pointer pattern pat_lit(@expr), pat_range(@expr, @expr), - pat_vec(~[@pat], Option<@pat>) + // [a, b, ..i, y, z] is represented as + // pat_vec(~[a, b], Some(i), ~[y, z]) + pat_vec(~[@pat], Option<@pat>, ~[@pat]) } #[auto_encode] |
