Skip to content

Commit

Permalink
Added "copy" to Debug fmt for copy operands
Browse files Browse the repository at this point in the history
  • Loading branch information
RayMuir authored and scottmcm committed Aug 18, 2024
1 parent 6de928d commit 32185de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/mir/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ impl<'tcx> Debug for Operand<'tcx> {
use self::Operand::*;
match *self {
Constant(ref a) => write!(fmt, "{a:?}"),
Copy(ref place) => write!(fmt, "{place:?}"),
Copy(ref place) => write!(fmt, "copy {place:?}"),
Move(ref place) => write!(fmt, "move {place:?}"),
}
}
Expand Down

0 comments on commit 32185de

Please sign in to comment.