diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-01-27 15:19:49 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-01-28 08:19:31 +0000 |
| commit | fd6713fce1d06ba283bc27331df354b7a9443d6b (patch) | |
| tree | e8846b557eabbf320d1008393121c9d183acebb2 /compiler/rustc_middle/src/ty/print | |
| parent | 7877d86163d802b2963d893850555d684c9d0eb1 (diff) | |
| download | rust-fd6713fce1d06ba283bc27331df354b7a9443d6b.tar.gz rust-fd6713fce1d06ba283bc27331df354b7a9443d6b.zip | |
Make mir dumps more readable
Diffstat (limited to 'compiler/rustc_middle/src/ty/print')
| -rw-r--r-- | compiler/rustc_middle/src/ty/print/pretty.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs index ac900edefe1..027a4315b4b 100644 --- a/compiler/rustc_middle/src/ty/print/pretty.rs +++ b/compiler/rustc_middle/src/ty/print/pretty.rs @@ -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| { |
