Do not execute captures code for async fns
This commit is contained in:
parent
5a184acfc6
commit
9c0d9babd1
1 changed files with 1 additions and 1 deletions
|
@ -1877,7 +1877,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||
let context = ImplTraitContext::ReturnPositionOpaqueTy {
|
||||
origin: hir::OpaqueTyOrigin::FnReturn(fn_def_id),
|
||||
};
|
||||
self.lower_ty(ty, context, true)
|
||||
self.lower_ty(ty, context, false)
|
||||
}
|
||||
FnRetTy::Default(ret_ty_span) => self.arena.alloc(self.ty_tup(*ret_ty_span, &[])),
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue