We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d30f56d commit d3cd406Copy full SHA for d3cd406
compiler/rustc_symbol_mangling/src/v0.rs
@@ -651,6 +651,7 @@ impl<'tcx> Printer<'tcx> for &mut SymbolMangler<'tcx> {
651
.builtin_deref(true)
652
.expect("tried to dereference on non-ptr type")
653
.ty;
654
+ // FIXME: add an assert that we only do this for valtrees.
655
let dereferenced_const = self.tcx.mk_ct_from_kind(ct.kind(), pointee_ty);
656
self = dereferenced_const.print(self)?;
657
}
0 commit comments