Make mir dumps more readable
This commit is contained in:
parent
7877d86163
commit
fd6713fce1
3 changed files with 8 additions and 4 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue