Add or-patterns to pattern types

This commit is contained in:
Oli Scherer
2025-02-27 09:46:46 +00:00
parent cb6d3715a5
commit b023856f29
34 changed files with 504 additions and 14 deletions

View File

@@ -2469,6 +2469,8 @@ pub enum TyPatKind {
/// A range pattern (e.g., `1...2`, `1..2`, `1..`, `..2`, `1..=2`, `..=2`).
Range(Option<P<AnonConst>>, Option<P<AnonConst>>, Spanned<RangeEnd>),
Or(ThinVec<P<TyPat>>),
/// Placeholder for a pattern that wasn't syntactically well formed in some way.
Err(ErrorGuaranteed),
}