Skip to content

Commit 3ebb852

Browse files
committed
Add LifetimeBinderKind::Closure
1 parent 577f3c6 commit 3ebb852

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_resolve/src/late.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ enum LifetimeBinderKind {
268268
WhereBound,
269269
Item,
270270
Function,
271+
Closure,
271272
ImplBlock,
272273
}
273274

@@ -281,6 +282,7 @@ impl LifetimeBinderKind {
281282
Item => "item",
282283
ImplBlock => "impl block",
283284
Function => "function",
285+
Closure => "closure",
284286
}
285287
}
286288
}
@@ -3544,7 +3546,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
35443546
NormalRibKind,
35453547
LifetimeRibKind::Generics {
35463548
binder: expr.id,
3547-
kind: LifetimeBinderKind::Function,
3549+
kind: LifetimeBinderKind::Closure,
35483550
span,
35493551
},
35503552
|this| visit::walk_expr(this, expr),

0 commit comments

Comments
 (0)