1
Fork 0

WIP tidy hir/lowering/expr.rs

This commit is contained in:
Niko Matsakis 2019-10-02 10:33:07 -04:00
parent f7ed53c9da
commit 094f3a844e

View file

@ -775,10 +775,12 @@ impl LoweringContext<'_> {
None
};
let async_body = this.make_async_expr(
capture_clause, closure_id, async_ret_ty, body.span, hir::AsyncGeneratorKind::Closure,
|this| {
this.with_new_scopes(|this| this.lower_expr(body))
}
capture_clause,
closure_id,
async_ret_ty,
body.span,
hir::AsyncGeneratorKind::Closure,
|this| this.with_new_scopes(|this| this.lower_expr(body)),
);
this.expr(fn_decl_span, async_body, ThinVec::new())
});