diff options
| author | b-naber <bn263@gmx.de> | 2022-08-09 19:12:14 +0200 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2022-08-09 19:12:33 +0200 |
| commit | 52830efdcc216a78319fabeb26259570614686ca (patch) | |
| tree | ab9e80ca80a01dad138e7e0f07f9dde07bbf938c | |
| parent | cc4dd6fc9f1a5c798df269933c7e442b79661a86 (diff) | |
| download | rust-52830efdcc216a78319fabeb26259570614686ca.tar.gz rust-52830efdcc216a78319fabeb26259570614686ca.zip | |
fix
| -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 7f2e81a71a9..cc55b7e8611 100644 --- a/compiler/rustc_middle/src/ty/print/pretty.rs +++ b/compiler/rustc_middle/src/ty/print/pretty.rs @@ -1513,6 +1513,10 @@ pub trait PrettyPrinter<'tcx>: } return Ok(self); } + (ty::ValTree::Leaf(leaf), ty::Ref(_, inner_ty, _)) => { + p!(write("&")); + return self.pretty_print_const_scalar_int(leaf, *inner_ty, print_ty); + } (ty::ValTree::Leaf(leaf), _) => { return self.pretty_print_const_scalar_int(leaf, ty, print_ty); } |
