mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Do not print type for placeholder values
This commit is contained in:
parent
6b52603a49
commit
37c00c41f8
@ -548,9 +548,10 @@ impl Printer<'tcx> for SymbolMangler<'tcx> {
|
||||
bug!("symbol_names: unsupported constant of type `{}` ({:?})", ct.ty, ct);
|
||||
}
|
||||
};
|
||||
self = ct.ty.print(self)?;
|
||||
|
||||
if let Some(bits) = val {
|
||||
// We only print the type if the const can be evaluated.
|
||||
self = ct.ty.print(self)?;
|
||||
let _ = write!(self.out, "{}{:x}_", if neg { "n" } else { "" }, bits);
|
||||
} else {
|
||||
// NOTE(eddyb) despite having the path, we need to
|
||||
|
Loading…
Reference in New Issue
Block a user