Use real resume type as second argument
This commit is contained in:
parent
0117033c72
commit
25af2f66ce
1 changed files with 2 additions and 1 deletions
|
|
@ -2350,7 +2350,8 @@ impl<'tcx> ty::Instance<'tcx> {
|
|||
]);
|
||||
let ret_ty = tcx.mk_adt(state_adt_ref, state_substs);
|
||||
|
||||
tcx.mk_fn_sig([env_ty, tcx.mk_unit()].iter(),
|
||||
tcx.mk_fn_sig(
|
||||
[env_ty, sig.resume_ty].iter(),
|
||||
&ret_ty,
|
||||
false,
|
||||
hir::Unsafety::Normal,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue