Skip to content
Permalink
Browse files

WIP tidy hir/lowering/expr.rs

  • Loading branch information...
nikomatsakis committed Oct 2, 2019
1 parent f7ed53c commit 094f3a844ed95e2aeda8708cf32a85bd40e7e229
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/librustc/hir/lowering/expr.rs
@@ -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())
});

0 comments on commit 094f3a8

Please sign in to comment.
You can’t perform that action at this time.