Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir/pretty.rs')
-rw-r--r--crates/hir-ty/src/mir/pretty.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/hir-ty/src/mir/pretty.rs b/crates/hir-ty/src/mir/pretty.rs
index f71e297897..7ae6e907e7 100644
--- a/crates/hir-ty/src/mir/pretty.rs
+++ b/crates/hir-ty/src/mir/pretty.rs
@@ -18,8 +18,8 @@ use crate::{
};
use super::{
- AggregateKind, BasicBlockId, BorrowKind, LocalId, MirBody, MutBorrowKind, Operand, Place,
- Rvalue, UnOp,
+ AggregateKind, BasicBlockId, BorrowKind, LocalId, MirBody, MutBorrowKind, Operand, OperandKind,
+ Place, Rvalue, UnOp,
};
macro_rules! w {
@@ -374,14 +374,14 @@ impl<'a> MirPrettyCtx<'a> {
}
fn operand(&mut self, r: &Operand) {
- match r {
- Operand::Copy(p) | Operand::Move(p) => {
+ match &r.kind {
+ OperandKind::Copy(p) | OperandKind::Move(p) => {
// MIR at the time of writing doesn't have difference between move and copy, so we show them
// equally. Feel free to change it.
self.place(p);
}
- Operand::Constant(c) => w!(self, "Const({})", self.hir_display(c)),
- Operand::Static(s) => w!(self, "Static({:?})", s),
+ OperandKind::Constant(c) => w!(self, "Const({})", self.hir_display(c)),
+ OperandKind::Static(s) => w!(self, "Static({:?})", s),
}
}