Rollup merge of #34368 - petrochenkov:astqpath, r=Manishearth

The AST part of https://github.com/rust-lang/rust/pull/34365

plugin-[breaking-change] cc https://github.com/rust-lang/rust/issues/31645
This commit is contained in:
Jeffrey Seyfried 2016-06-25 22:26:47 +00:00
commit 4e2e31c118
10 changed files with 24 additions and 46 deletions

View file

@ -3740,12 +3740,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);
}
}
}