diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-06-11 18:47:47 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-06-20 23:39:02 +0300 |
| commit | f903c97959593e4612403989148f6116ab57611f (patch) | |
| tree | c6793c56383f0c64258bb896ff56b5b7c0f2f94f /src/libsyntax/parse | |
| parent | d06f1dcd7d3b9d9d5e0dc32ea7207a07e3408200 (diff) | |
| download | rust-f903c97959593e4612403989148f6116ab57611f.tar.gz rust-f903c97959593e4612403989148f6116ab57611f.zip | |
Merge PatKind::QPath into PatKind::Path in AST
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 341b076e7cf..6704543e880 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3715,12 +3715,7 @@ impl<'a> Parser<'a> { pat = PatKind::TupleStruct(path, fields, ddpos) } _ => { - pat = match qself { - // Parse qualified path - Some(qself) => PatKind::QPath(qself, path), - // Parse nullary enum - None => PatKind::Path(path) - }; + pat = PatKind::Path(qself, path); } } } |
