Add LifetimeBinderKind::Closure
This commit is contained in:
parent
577f3c6f52
commit
3ebb852956
1 changed files with 3 additions and 1 deletions
|
@ -268,6 +268,7 @@ enum LifetimeBinderKind {
|
||||||
WhereBound,
|
WhereBound,
|
||||||
Item,
|
Item,
|
||||||
Function,
|
Function,
|
||||||
|
Closure,
|
||||||
ImplBlock,
|
ImplBlock,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,6 +282,7 @@ impl LifetimeBinderKind {
|
||||||
Item => "item",
|
Item => "item",
|
||||||
ImplBlock => "impl block",
|
ImplBlock => "impl block",
|
||||||
Function => "function",
|
Function => "function",
|
||||||
|
Closure => "closure",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3544,7 +3546,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
|
||||||
NormalRibKind,
|
NormalRibKind,
|
||||||
LifetimeRibKind::Generics {
|
LifetimeRibKind::Generics {
|
||||||
binder: expr.id,
|
binder: expr.id,
|
||||||
kind: LifetimeBinderKind::Function,
|
kind: LifetimeBinderKind::Closure,
|
||||||
span,
|
span,
|
||||||
},
|
},
|
||||||
|this| visit::walk_expr(this, expr),
|
|this| visit::walk_expr(this, expr),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue