Print constants in type_name for const generics
This commit is contained in:
parent
dee12bb2b7
commit
50dd8eaeb9
5 changed files with 52 additions and 12 deletions
|
|
@ -237,7 +237,7 @@ impl Printer<'tcx> for SymbolPrinter<'tcx> {
|
|||
// only print integers
|
||||
if let ty::ConstKind::Value(ConstValue::Scalar(Scalar::Raw { .. })) = ct.val {
|
||||
if ct.ty.is_integral() {
|
||||
return self.pretty_print_const(ct);
|
||||
return self.pretty_print_const(ct, true);
|
||||
}
|
||||
}
|
||||
self.write_str("_")?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue