diff options
| author | Boxy <supbscripter@gmail.com> | 2023-07-04 15:11:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-04 15:11:12 +0100 |
| commit | d3cd4065199a7ebe31b2ef3627987fd317993b76 (patch) | |
| tree | 92bab4a8b67215ee885275f5e3af74011f64c558 | |
| parent | d30f56dbf22781c653539b15a687cb2c2883bb5f (diff) | |
| download | rust-d3cd4065199a7ebe31b2ef3627987fd317993b76.tar.gz rust-d3cd4065199a7ebe31b2ef3627987fd317993b76.zip | |
nit
Co-authored-by: lcnr <rust@lcnr.de>
| -rw-r--r-- | compiler/rustc_symbol_mangling/src/v0.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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)?; } |
