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:
commit
4e2e31c118
10 changed files with 24 additions and 46 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue