WIP tidy hir/lowering/expr.rs
This commit is contained in:
parent
f7ed53c9da
commit
094f3a844e
1 changed files with 6 additions and 4 deletions
|
@ -775,10 +775,12 @@ impl LoweringContext<'_> {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
let async_body = this.make_async_expr(
|
let async_body = this.make_async_expr(
|
||||||
capture_clause, closure_id, async_ret_ty, body.span, hir::AsyncGeneratorKind::Closure,
|
capture_clause,
|
||||||
|this| {
|
closure_id,
|
||||||
this.with_new_scopes(|this| this.lower_expr(body))
|
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())
|
this.expr(fn_decl_span, async_body, ThinVec::new())
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue