about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-12-12 19:52:38 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-04-14 09:38:03 +0000
commit8582bc4e37a60957f78f39a64b6e0eeda8007dae (patch)
treee7153c0c53dc54130fdf6e37c841a9efaf2938ce
parent22d3c0d70a023f3f1641b4b70e4b48949dcface3 (diff)
downloadrust-8582bc4e37a60957f78f39a64b6e0eeda8007dae.tar.gz
rust-8582bc4e37a60957f78f39a64b6e0eeda8007dae.zip
Pass MonoItemData to MonoItem::define
-rw-r--r--src/base.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base.rs b/src/base.rs
index 9b495174a3f..292f0514070 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -223,8 +223,8 @@ pub fn compile_codegen_unit(
             }
 
             // ... and now that we have everything pre-defined, fill out those definitions.
-            for &(mono_item, _) in &mono_items {
-                mono_item.define::<Builder<'_, '_, '_>>(&cx);
+            for &(mono_item, item_data) in &mono_items {
+                mono_item.define::<Builder<'_, '_, '_>>(&cx, item_data);
             }
 
             // If this codegen unit contains the main function, also create the