Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/hir.rs')
-rw-r--r--crates/hir-def/src/hir.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir-def/src/hir.rs b/crates/hir-def/src/hir.rs
index 591ee77c70..5890e818c4 100644
--- a/crates/hir-def/src/hir.rs
+++ b/crates/hir-def/src/hir.rs
@@ -265,6 +265,7 @@ pub enum Expr {
Index {
base: ExprId,
index: ExprId,
+ is_assignee_expr: bool,
},
Closure {
args: Box<[PatId]>,
@@ -432,7 +433,7 @@ impl Expr {
f(rhs);
}
}
- Expr::Index { base, index } => {
+ Expr::Index { base, index, .. } => {
f(*base);
f(*index);
}