diff options
Diffstat (limited to 'crates/hir_def/src/expr.rs')
-rw-r--r-- | crates/hir_def/src/expr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_def/src/expr.rs b/crates/hir_def/src/expr.rs index c94b3a36f..dc975d42f 100644 --- a/crates/hir_def/src/expr.rs +++ b/crates/hir_def/src/expr.rs | |||
@@ -395,6 +395,7 @@ pub enum Pat { | |||
395 | Bind { mode: BindingAnnotation, name: Name, subpat: Option<PatId> }, | 395 | Bind { mode: BindingAnnotation, name: Name, subpat: Option<PatId> }, |
396 | TupleStruct { path: Option<Path>, args: Vec<PatId>, ellipsis: Option<usize> }, | 396 | TupleStruct { path: Option<Path>, args: Vec<PatId>, ellipsis: Option<usize> }, |
397 | Ref { pat: PatId, mutability: Mutability }, | 397 | Ref { pat: PatId, mutability: Mutability }, |
398 | Box { inner: PatId }, | ||
398 | } | 399 | } |
399 | 400 | ||
400 | impl Pat { | 401 | impl Pat { |
@@ -415,6 +416,7 @@ impl Pat { | |||
415 | Pat::Record { args, .. } => { | 416 | Pat::Record { args, .. } => { |
416 | args.iter().map(|f| f.pat).for_each(f); | 417 | args.iter().map(|f| f.pat).for_each(f); |
417 | } | 418 | } |
419 | Pat::Box { inner } => f(*inner), | ||
418 | } | 420 | } |
419 | } | 421 | } |
420 | } | 422 | } |