about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/interpret/operand.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2021-02-16 09:59:38 +0100
committerRalf Jung <post@ralfj.de>2021-02-16 09:59:38 +0100
commitb08bc7836be6a53e733190f3174128fe8d005737 (patch)
treee865401de633bf0c143c1f6858b8ec4c595ae495 /compiler/rustc_mir/src/interpret/operand.rs
parent090dac0c3892a2d21afb0f82aa72920760e08078 (diff)
downloadrust-b08bc7836be6a53e733190f3174128fe8d005737.tar.gz
rust-b08bc7836be6a53e733190f3174128fe8d005737.zip
fix MIR fn-ptr pretty-printing
Diffstat (limited to 'compiler/rustc_mir/src/interpret/operand.rs')
-rw-r--r--compiler/rustc_mir/src/interpret/operand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/interpret/operand.rs b/compiler/rustc_mir/src/interpret/operand.rs
index 88236458a21..4b131ecb863 100644
--- a/compiler/rustc_mir/src/interpret/operand.rs
+++ b/compiler/rustc_mir/src/interpret/operand.rs
@@ -106,7 +106,7 @@ impl<Tag: Copy> std::fmt::Display for ImmTy<'tcx, Tag> {
                 }
                 ScalarMaybeUninit::Uninit => cx.typed_value(
                     |mut this| {
-                        this.write_str("{uninit ")?;
+                        this.write_str("uninit ")?;
                         Ok(this)
                     },
                     |this| this.print_type(ty),