Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr.rs')
-rw-r--r--crates/hir-def/src/expr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/expr.rs b/crates/hir-def/src/expr.rs
index 4dca823888..fd09e651c9 100644
--- a/crates/hir-def/src/expr.rs
+++ b/crates/hir-def/src/expr.rs
@@ -165,7 +165,7 @@ pub enum Expr {
base: ExprId,
index: ExprId,
},
- Lambda {
+ Closure {
args: Box<[PatId]>,
arg_types: Box<[Option<Interned<TypeRef>>]>,
ret_type: Option<Interned<TypeRef>>,
@@ -286,7 +286,7 @@ impl Expr {
f(expr);
}
}
- Expr::Lambda { body, .. } => {
+ Expr::Closure { body, .. } => {
f(*body);
}
Expr::BinaryOp { lhs, rhs, .. } => {