Skip to content

Commit 25af2f6

Browse files
Use real resume type as second argument
1 parent 0117033 commit 25af2f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/ty/layout.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,8 @@ impl<'tcx> ty::Instance<'tcx> {
23502350
]);
23512351
let ret_ty = tcx.mk_adt(state_adt_ref, state_substs);
23522352

2353-
tcx.mk_fn_sig([env_ty, tcx.mk_unit()].iter(),
2353+
tcx.mk_fn_sig(
2354+
[env_ty, sig.resume_ty].iter(),
23542355
&ret_ty,
23552356
false,
23562357
hir::Unsafety::Normal,

0 commit comments

Comments
 (0)