Add LifetimeBinderKind::Closure
This commit is contained in:
parent
577f3c6f52
commit
3ebb852956
@ -268,6 +268,7 @@ enum LifetimeBinderKind {
|
||||
WhereBound,
|
||||
Item,
|
||||
Function,
|
||||
Closure,
|
||||
ImplBlock,
|
||||
}
|
||||
|
||||
@ -281,6 +282,7 @@ fn descr(self) -> &'static str {
|
||||
Item => "item",
|
||||
ImplBlock => "impl block",
|
||||
Function => "function",
|
||||
Closure => "closure",
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3544,7 +3546,7 @@ fn resolve_expr(&mut self, expr: &'ast Expr, parent: Option<&'ast Expr>) {
|
||||
NormalRibKind,
|
||||
LifetimeRibKind::Generics {
|
||||
binder: expr.id,
|
||||
kind: LifetimeBinderKind::Function,
|
||||
kind: LifetimeBinderKind::Closure,
|
||||
span,
|
||||
},
|
||||
|this| visit::walk_expr(this, expr),
|
||||
|
Loading…
Reference in New Issue
Block a user