Add PatKind::Err
This commit is contained in:
parent
6ed31aba1a
commit
7889e99b55
23 changed files with 66 additions and 24 deletions
|
@ -625,7 +625,8 @@ impl Pat {
|
|||
| PatKind::Range(..)
|
||||
| PatKind::Ident(..)
|
||||
| PatKind::Path(..)
|
||||
| PatKind::MacCall(_) => {}
|
||||
| PatKind::MacCall(_)
|
||||
| PatKind::Err(_) => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -809,6 +810,9 @@ pub enum PatKind {
|
|||
|
||||
/// A macro pattern; pre-expansion.
|
||||
MacCall(P<MacCall>),
|
||||
|
||||
/// Placeholder for a pattern that wasn't syntactically well formed in some way.
|
||||
Err(ErrorGuaranteed),
|
||||
}
|
||||
|
||||
/// Whether the `..` is present in a struct fields pattern.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue