Skip to content

Commit 52830ef

Browse files
committed
fix
1 parent cc4dd6f commit 52830ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_middle/src/ty/print/pretty.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,10 @@ pub trait PrettyPrinter<'tcx>:
15131513
}
15141514
return Ok(self);
15151515
}
1516+
(ty::ValTree::Leaf(leaf), ty::Ref(_, inner_ty, _)) => {
1517+
p!(write("&"));
1518+
return self.pretty_print_const_scalar_int(leaf, *inner_ty, print_ty);
1519+
}
15161520
(ty::ValTree::Leaf(leaf), _) => {
15171521
return self.pretty_print_const_scalar_int(leaf, ty, print_ty);
15181522
}

0 commit comments

Comments
 (0)