diff options
| author | bors <bors@rust-lang.org> | 2023-07-18 09:27:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-18 09:27:07 +0000 |
| commit | f4754ed80c53a3bd125243421065b7af3e7a1faf (patch) | |
| tree | c84c974240de7cbb672d210e8d7c4a13992c579e /compiler/rustc_codegen_llvm/src | |
| parent | bbabfdc4d3982f4385d257891c7ffe0d9aac3867 (diff) | |
| parent | 7bee1c86161a7189508597902895b5bb5d460321 (diff) | |
| download | rust-f4754ed80c53a3bd125243421065b7af3e7a1faf.tar.gz rust-f4754ed80c53a3bd125243421065b7af3e7a1faf.zip | |
Auto merge of #2986 - rust-lang:rustup-2023-07-18, r=RalfJung
Automatic sync from rustc
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/base.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/base.rs b/compiler/rustc_codegen_llvm/src/base.rs index 5b2bbdb4bde..5b5f81c0329 100644 --- a/compiler/rustc_codegen_llvm/src/base.rs +++ b/compiler/rustc_codegen_llvm/src/base.rs @@ -86,8 +86,8 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol) -> (ModuleCodegen { let cx = CodegenCx::new(tcx, cgu, &llvm_module); let mono_items = cx.codegen_unit.items_in_deterministic_order(cx.tcx); - for &(mono_item, (linkage, visibility)) in &mono_items { - mono_item.predefine::<Builder<'_, '_, '_>>(&cx, linkage, visibility); + for &(mono_item, data) in &mono_items { + mono_item.predefine::<Builder<'_, '_, '_>>(&cx, data.linkage, data.visibility); } // ... and now that we have everything pre-defined, fill out those definitions. |
