about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/debuginfo
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2025-02-11 19:40:29 -0800
committerJubilee Young <workingjubilee@gmail.com>2025-02-11 19:42:47 -0800
commit32fd1a7b7205d1f8ccf168c22dada83ea38e3adb (patch)
treedbb47607f37fda33f5ada5f7ddf4bc9e727195ed /compiler/rustc_codegen_ssa/src/debuginfo
parent34a5ea911c56e79bd451c63f04ea2f5023d7d1a3 (diff)
downloadrust-32fd1a7b7205d1f8ccf168c22dada83ea38e3adb.tar.gz
rust-32fd1a7b7205d1f8ccf168c22dada83ea38e3adb.zip
compiler: replace ExternAbi::name calls with formatters
Most of these just format the ABI string, so... just format ExternAbi?
This makes it more consistent and less jank when we can do it.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
index 05175371591..53953b089c6 100644
--- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
+++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
@@ -367,9 +367,7 @@ fn push_debuginfo_type_name<'tcx>(
                 output.push_str(sig.safety.prefix_str());
 
                 if sig.abi != rustc_abi::ExternAbi::Rust {
-                    output.push_str("extern \"");
-                    output.push_str(sig.abi.name());
-                    output.push_str("\" ");
+                    let _ = write!(output, "extern {} ", sig.abi);
                 }
 
                 output.push_str("fn(");