Skip to content

Commit 32185de

Browse files
RayMuirscottmcm
authored andcommitted
Added "copy" to Debug fmt for copy operands
1 parent 6de928d commit 32185de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_middle/src/mir/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ impl<'tcx> Debug for Operand<'tcx> {
11591159
use self::Operand::*;
11601160
match *self {
11611161
Constant(ref a) => write!(fmt, "{a:?}"),
1162-
Copy(ref place) => write!(fmt, "{place:?}"),
1162+
Copy(ref place) => write!(fmt, "copy {place:?}"),
11631163
Move(ref place) => write!(fmt, "move {place:?}"),
11641164
}
11651165
}

0 commit comments

Comments
 (0)