Remove the NodeId
of ast::ExprKind::Async
This commit is contained in:
parent
ab9bb3ea36
commit
c8ead2e693
14 changed files with 56 additions and 64 deletions
|
@ -260,9 +260,7 @@ impl<'a, 'b, 'tcx> visit::Visitor<'a> for DefCollector<'a, 'b, 'tcx> {
|
|||
Async::No => closure_def,
|
||||
}
|
||||
}
|
||||
ExprKind::Async(_, async_id, _) => {
|
||||
self.create_def(async_id, DefPathData::ClosureExpr, expr.span)
|
||||
}
|
||||
ExprKind::Async(_, _) => self.create_def(expr.id, DefPathData::ClosureExpr, expr.span),
|
||||
_ => self.parent_def,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue