Make mir dumps more readable

This commit is contained in:
Oli Scherer 2025-01-27 15:19:49 +00:00
parent 7877d86163
commit fd6713fce1
3 changed files with 8 additions and 4 deletions

View file

@ -1740,6 +1740,10 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
" as ",
)?;
}
ty::Pat(base_ty, pat) => {
self.pretty_print_const_scalar_int(int, *base_ty, print_ty)?;
p!(write(" is {pat:?}"));
}
// Nontrivial types with scalar bit representation
_ => {
let print = |this: &mut Self| {