about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/debuginfo
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2023-05-17 10:30:14 +0000
committerDeadbeef <ent3rm4n@gmail.com>2023-06-01 14:45:18 +0000
commit4f83717cf768adb0b0dfe23b8eecf2b259eec354 (patch)
treebac79441d2e21eda2a702697484bba96d7cacf7e /compiler/rustc_codegen_ssa/src/debuginfo
parent642c92e63008ffb49f6ad8344e07bfa7d5b0d9bb (diff)
downloadrust-4f83717cf768adb0b0dfe23b8eecf2b259eec354.tar.gz
rust-4f83717cf768adb0b0dfe23b8eecf2b259eec354.zip
Use translatable diagnostics in `rustc_const_eval`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
index 6297f91341d..e91f7b86e5e 100644
--- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
+++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
@@ -93,8 +93,7 @@ fn push_debuginfo_type_name<'tcx>(
                     Err(e) => {
                         // Computing the layout can still fail here, e.g. if the target architecture
                         // cannot represent the type. See https://github.com/rust-lang/rust/issues/94961.
-                        // FIXME: migrate once `rustc_middle::mir::interpret::InterpError` is translatable.
-                        tcx.sess.fatal(format!("{}", e));
+                        tcx.sess.emit_fatal(e.into_diagnostic());
                     }
                 }
             } else {