Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr_store.rs')
| -rw-r--r-- | crates/hir-def/src/expr_store.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/hir-def/src/expr_store.rs b/crates/hir-def/src/expr_store.rs index 2c2b477115..af3d28d174 100644 --- a/crates/hir-def/src/expr_store.rs +++ b/crates/hir-def/src/expr_store.rs @@ -587,7 +587,7 @@ impl ExpressionStore { Pat::Record { args, ellipsis: _, path: _ } => { args.iter().for_each(|RecordFieldPat { pat, name: _ }| f(*pat)); } - Pat::Box { inner } => f(*inner), + Pat::Box { inner } | Pat::Deref { inner } => f(*inner), } } @@ -803,7 +803,8 @@ impl ExpressionStore { | Pat::Bind { .. } | Pat::TupleStruct { .. } | Pat::Ref { .. } - | Pat::Box { .. } => {} + | Pat::Box { .. } + | Pat::Deref { .. } => {} }); } |