Rollup merge of #74873 - lcnr:const-print, r=eddyb

symbol mangling: use ty::print::Print for consts

r? @eddyb
This commit is contained in:
Manish Goregaokar 2020-07-29 16:38:26 -07:00 committed by GitHub
commit e6b0376e7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -636,9 +636,7 @@ impl Printer<'tcx> for SymbolMangler<'tcx> {
}
GenericArgKind::Const(c) => {
self.push("K");
// FIXME(const_generics) implement `ty::print::Print` on `ty::Const`.
// self = c.print(self)?;
self = self.print_const(c)?;
self = c.print(self)?;
}
}
}