1
Fork 0

Merge PatKind::QPath into PatKind::Path in AST

This commit is contained in:
Vadim Petrochenkov 2016-06-11 18:47:47 +03:00
parent d06f1dcd7d
commit f903c97959
10 changed files with 24 additions and 46 deletions

View file

@ -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);
}
}
}