diff options
| author | bors <bors@rust-lang.org> | 2024-05-14 12:17:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-14 12:17:26 +0000 |
| commit | bdfd941f4dcbe54e0283433ac970febf4092fa6a (patch) | |
| tree | 5743b259bca3e92224dcd3b65f0cab41802e9636 /compiler | |
| parent | 31026b7fe3e510a646eddeda838d1f0859f892e7 (diff) | |
| parent | 792a9bdd4bf79e498b9e6a966c4cd9ef4d4085ce (diff) | |
| download | rust-bdfd941f4dcbe54e0283433ac970febf4092fa6a.tar.gz rust-bdfd941f4dcbe54e0283433ac970febf4092fa6a.zip | |
Auto merge of #123816 - tgross35:f16-f128-mangling, r=michaelwoerister
Add v0 symbol mangling for `f16` and `f128` As discussed at <https://github.com/rust-lang/rust/pull/122106>, use the crate encoding to represent new primitives.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_symbol_mangling/src/v0.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_symbol_mangling/src/v0.rs b/compiler/rustc_symbol_mangling/src/v0.rs index 1de2ecbb700..9fb217d2f84 100644 --- a/compiler/rustc_symbol_mangling/src/v0.rs +++ b/compiler/rustc_symbol_mangling/src/v0.rs @@ -319,11 +319,10 @@ impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx> { ty::Uint(UintTy::U64) => "y", ty::Uint(UintTy::U128) => "o", ty::Uint(UintTy::Usize) => "j", - // FIXME(f16_f128): update these once `rustc-demangle` supports the new types - ty::Float(FloatTy::F16) => unimplemented!("f16_f128"), + ty::Float(FloatTy::F16) => "C3f16", ty::Float(FloatTy::F32) => "f", ty::Float(FloatTy::F64) => "d", - ty::Float(FloatTy::F128) => unimplemented!("f16_f128"), + ty::Float(FloatTy::F128) => "C4f128", ty::Never => "z", // Placeholders (should be demangled as `_`). |
