ScalarMaybeUninit is explicitly hexadecimal in its formatting

This commit is contained in:
Ralf Jung 2022-02-21 21:46:51 -05:00
parent b8967b0d52
commit fb1ee8764f
3 changed files with 8 additions and 8 deletions

View file

@ -142,11 +142,11 @@ impl<Tag: Provenance> std::fmt::Display for ImmTy<'_, Tag> {
p(cx, s, ty)?;
return Ok(());
}
write!(f, "{}: {}", s, self.layout.ty)
write!(f, "{:x}: {}", s, self.layout.ty)
}
Immediate::ScalarPair(a, b) => {
// FIXME(oli-obk): at least print tuples and slices nicely
write!(f, "({}, {}): {}", a, b, self.layout.ty,)
write!(f, "({:x}, {:x}): {}", a, b, self.layout.ty,)
}
}
})