about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/errors.rs
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-03-27 12:08:00 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-04-01 09:25:12 +0000
commitc0fe46d6b72c96bda16bf62e7476e6d85ba68afe (patch)
tree8e3816b09ceab7925834e04efd7c3c68d753b1a8 /compiler/rustc_monomorphize/src/errors.rs
parentaec77398378cc7af99043c3d1dd2394eb3d33c43 (diff)
downloadrust-c0fe46d6b72c96bda16bf62e7476e6d85ba68afe.tar.gz
rust-c0fe46d6b72c96bda16bf62e7476e6d85ba68afe.zip
Make missing optimized MIR error more informative
Diffstat (limited to 'compiler/rustc_monomorphize/src/errors.rs')
-rw-r--r--compiler/rustc_monomorphize/src/errors.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_monomorphize/src/errors.rs b/compiler/rustc_monomorphize/src/errors.rs
index dffa372279f..adfe096f0cd 100644
--- a/compiler/rustc_monomorphize/src/errors.rs
+++ b/compiler/rustc_monomorphize/src/errors.rs
@@ -24,6 +24,7 @@ pub(crate) struct NoOptimizedMir {
     #[note]
     pub span: Span,
     pub crate_name: Symbol,
+    pub instance: String,
 }
 
 #[derive(LintDiagnostic)]