about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/messages.ftl
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-07-29 01:13:50 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-08-06 22:21:49 +0000
commit025fbe8f698a85865d0e9dba7e97ec6a82eac59b (patch)
treea31f3a36c2fde641f70a6f7e35f113cbcfec7f01 /compiler/rustc_monomorphize/messages.ftl
parent29cdc6a109ee98a382f974bf89d3971b4385399c (diff)
downloadrust-025fbe8f698a85865d0e9dba7e97ec6a82eac59b.tar.gz
rust-025fbe8f698a85865d0e9dba7e97ec6a82eac59b.zip
Add support for shortening `Instance` and use it
Replace ad-hoc type path shortening logic for recursive mono instantiation errors to use `tcx.short_string()` instead.
Diffstat (limited to 'compiler/rustc_monomorphize/messages.ftl')
-rw-r--r--compiler/rustc_monomorphize/messages.ftl9
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/rustc_monomorphize/messages.ftl b/compiler/rustc_monomorphize/messages.ftl
index 2bd19e81b01..9595a5b5ac7 100644
--- a/compiler/rustc_monomorphize/messages.ftl
+++ b/compiler/rustc_monomorphize/messages.ftl
@@ -40,7 +40,10 @@ monomorphize_couldnt_dump_mono_stats =
     unexpected error occurred while dumping monomorphization stats: {$error}
 
 monomorphize_encountered_error_while_instantiating =
-    the above error was encountered while instantiating `{$formatted_item}`
+    the above error was encountered while instantiating `{$kind} {$instance}`
+
+monomorphize_encountered_error_while_instantiating_global_asm =
+    the above error was encountered while instantiating `global_asm`
 
 monomorphize_large_assignments =
     moving {$size} bytes
@@ -52,12 +55,10 @@ monomorphize_no_optimized_mir =
     .note = missing optimized MIR for this item (was the crate `{$crate_name}` compiled with `--emit=metadata`?)
 
 monomorphize_recursion_limit =
-    reached the recursion limit while instantiating `{$shrunk}`
+    reached the recursion limit while instantiating `{$instance}`
     .note = `{$def_path_str}` defined here
 
 monomorphize_start_not_found = using `fn main` requires the standard library
     .help = use `#![no_main]` to bypass the Rust generated entrypoint and declare a platform specific entrypoint yourself, usually with `#[no_mangle]`
 
 monomorphize_symbol_already_defined = symbol `{$symbol}` is already defined
-
-monomorphize_written_to_path = the full type name has been written to '{$path}'