Remove excess rib while resolving closures
This commit is contained in:
parent
10f4ce324b
commit
9730221b9d
1 changed files with 3 additions and 1 deletions
|
@ -3514,7 +3514,9 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ExprKind::Async(..) | ExprKind::Closure(..) => {
|
// For closures, ClosureOrAsyncRibKind is added in visit_fn
|
||||||
|
ExprKind::Closure(..) => visit::walk_expr(self, expr),
|
||||||
|
ExprKind::Async(..) => {
|
||||||
self.with_label_rib(ClosureOrAsyncRibKind, |this| visit::walk_expr(this, expr));
|
self.with_label_rib(ClosureOrAsyncRibKind, |this| visit::walk_expr(this, expr));
|
||||||
}
|
}
|
||||||
ExprKind::Repeat(ref elem, ref ct) => {
|
ExprKind::Repeat(ref elem, ref ct) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue