initial implementation of or-pattern parsing
Initial implementation of parsing or-patterns e.g., `Some(Foo | Bar)`. This is a partial implementation of RFC 2535.
This commit is contained in:
parent
1713ac4bf5
commit
1870537f27
22 changed files with 142 additions and 60 deletions
|
@ -650,6 +650,7 @@ pub enum PatKind {
|
|||
TupleStruct(Path, Vec<P<Pat>>),
|
||||
|
||||
/// An or-pattern `A | B | C`.
|
||||
/// Invariant: `pats.len() >= 2`.
|
||||
Or(Vec<P<Pat>>),
|
||||
|
||||
/// A possibly qualified path pattern.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue