From d3cd4065199a7ebe31b2ef3627987fd317993b76 Mon Sep 17 00:00:00 2001 From: Boxy Date: Tue, 4 Jul 2023 15:11:12 +0100 Subject: [PATCH] nit Co-authored-by: lcnr --- compiler/rustc_symbol_mangling/src/v0.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_symbol_mangling/src/v0.rs b/compiler/rustc_symbol_mangling/src/v0.rs index d948b9a6244..c52ae4dc8e9 100644 --- a/compiler/rustc_symbol_mangling/src/v0.rs +++ b/compiler/rustc_symbol_mangling/src/v0.rs @@ -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)?; }