Tighten spans for async blocks
This commit is contained in:
parent
036b38ced3
commit
789ee88bd0
43 changed files with 173 additions and 204 deletions
|
@ -334,7 +334,7 @@ impl<'a, 'b, 'tcx> visit::Visitor<'a> for DefCollector<'a, 'b, 'tcx> {
|
|||
None => closure_def,
|
||||
}
|
||||
}
|
||||
ExprKind::Gen(_, _, _) => {
|
||||
ExprKind::Gen(_, _, _, _) => {
|
||||
self.create_def(expr.id, kw::Empty, DefKind::Closure, expr.span)
|
||||
}
|
||||
ExprKind::ConstBlock(ref constant) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue