Skip to content

Commit 68c690e

Browse files
committed
Added "copy" to Debug fmt for copy operands
1 parent accc516 commit 68c690e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ impl<'tcx> Debug for Operand<'tcx> {
10941094
use self::Operand::*;
10951095
match *self {
10961096
Constant(ref a) => write!(fmt, "{a:?}"),
1097-
Copy(ref place) => write!(fmt, "{place:?}"),
1097+
Copy(ref place) => write!(fmt, "copy {place:?}"),
10981098
Move(ref place) => write!(fmt, "move {place:?}"),
10991099
}
11001100
}

0 commit comments

Comments
 (0)