Skip to content

Commit 1ec9024

Browse files
Fix wrong order of return types in extract_tupled_inputs_and_output_from_async_callable
1 parent fc3800f commit 1ec9024

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/solve/assembly/structural_traits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ pub(in crate::solve) fn extract_tupled_inputs_and_output_from_async_callable<'tc
418418
.def_id;
419419
let future_output_ty = Ty::new_projection(tcx, future_output_def_id, [sig.output()]);
420420
Ok((
421-
bound_sig.rebind((Ty::new_tup(tcx, sig.inputs()), sig.output(), future_output_ty)),
421+
bound_sig.rebind((Ty::new_tup(tcx, sig.inputs()), future_output_ty, sig.output())),
422422
nested,
423423
))
424424
}
@@ -469,7 +469,7 @@ pub(in crate::solve) fn extract_tupled_inputs_and_output_from_async_callable<'tc
469469
.unwrap()
470470
.def_id;
471471
let future_output_ty = Ty::new_projection(tcx, future_output_def_id, [sig.output()]);
472-
Ok((bound_sig.rebind((sig.inputs()[0], sig.output(), future_output_ty)), nested))
472+
Ok((bound_sig.rebind((sig.inputs()[0], future_output_ty, sig.output())), nested))
473473
}
474474

475475
ty::Bool

0 commit comments

Comments
 (0)