Skip to content

Commit 05685bd

Browse files
committed
Correct argument order in tuple_like_shim
1 parent d35bc21 commit 05685bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/shim.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
752752

753753
let tcx = self.tcx;
754754
let iter = variant.fields.iter().map(|field| field.ty(tcx, substs));
755-
self.tuple_like_shim(src_variant, dest_variant, iter);
755+
self.tuple_like_shim(dest_variant, src_variant, iter);
756756
}
757757
// In the default arm, fall back to a copy
758758
targets.push(self.copy_shim(dest, receiver));

0 commit comments

Comments
 (0)