diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-03-27 12:08:00 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-04-01 09:25:12 +0000 |
| commit | c0fe46d6b72c96bda16bf62e7476e6d85ba68afe (patch) | |
| tree | 8e3816b09ceab7925834e04efd7c3c68d753b1a8 /compiler/rustc_monomorphize/src/collector.rs | |
| parent | aec77398378cc7af99043c3d1dd2394eb3d33c43 (diff) | |
| download | rust-c0fe46d6b72c96bda16bf62e7476e6d85ba68afe.tar.gz rust-c0fe46d6b72c96bda16bf62e7476e6d85ba68afe.zip | |
Make missing optimized MIR error more informative
Diffstat (limited to 'compiler/rustc_monomorphize/src/collector.rs')
| -rw-r--r-- | compiler/rustc_monomorphize/src/collector.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index 2a1b20ba48b..6e676ac6b8d 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -989,6 +989,7 @@ fn should_codegen_locally<'tcx>(tcx: TyCtxt<'tcx>, instance: Instance<'tcx>) -> tcx.dcx().emit_fatal(NoOptimizedMir { span: tcx.def_span(def_id), crate_name: tcx.crate_name(def_id.krate), + instance: instance.to_string(), }); } |
