Co-authored-by: lcnr <rust@lcnr.de>
This commit is contained in:
Boxy
2023-07-04 15:11:12 +01:00
committed by GitHub
parent 0ceed4d5ea
commit 282d3373c7
+1
View File
@@ -651,6 +651,7 @@ impl<'tcx> Printer<'tcx> for &mut SymbolMangler<'tcx> {
.builtin_deref(true)
.expect("tried to dereference on non-ptr type")
.ty;
// FIXME: add an assert that we only do this for valtrees.
let dereferenced_const = self.tcx.mk_ct_from_kind(ct.kind(), pointee_ty);
self = dereferenced_const.print(self)?;
}