diff options
| author | bors <bors@rust-lang.org> | 2024-10-26 06:53:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-26 06:53:53 +0000 |
| commit | 80d0d927d5069b67cc08c0c65b48e7b6e0cdeeb5 (patch) | |
| tree | 7a785a040625a44584b8a3a3bb6e859cd6eb7e1b /compiler/rustc_codegen_llvm/src | |
| parent | ae4c6b66402cdbda8daa626216efd94e2dbe94b2 (diff) | |
| parent | 56463df1be31246074c86c21e2174430ad466dbd (diff) | |
| download | rust-80d0d927d5069b67cc08c0c65b48e7b6e0cdeeb5.tar.gz rust-80d0d927d5069b67cc08c0c65b48e7b6e0cdeeb5.zip | |
Auto merge of #132171 - matthiaskrgr:rollup-tp75ge7, r=matthiaskrgr
Rollup of 3 pull requests
Successful merges:
- #132114 (Use `Enabled{Lang,Lib}Feature` instead of n-tuples)
- #132163 (Update Fuchsia CI script for package serving)
- #132168 (Effects cleanup)
r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/callee.rs | 3 | ||||
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/mod.rs | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/callee.rs b/compiler/rustc_codegen_llvm/src/callee.rs index 206a7069792..a51ef8d7b85 100644 --- a/compiler/rustc_codegen_llvm/src/callee.rs +++ b/compiler/rustc_codegen_llvm/src/callee.rs @@ -98,8 +98,7 @@ pub(crate) fn get_fn<'ll, 'tcx>(cx: &CodegenCx<'ll, 'tcx>, instance: Instance<'t unsafe { llvm::LLVMRustSetLinkage(llfn, llvm::Linkage::ExternalLinkage); - let is_generic = - instance.args.non_erasable_generics(tcx, instance.def_id()).next().is_some(); + let is_generic = instance.args.non_erasable_generics().next().is_some(); let is_hidden = if is_generic { // This is a monomorphization of a generic function. diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs index 1a8153a54e8..3de4ca77e7d 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs @@ -350,7 +350,6 @@ impl<'ll, 'tcx> DebugInfoCodegenMethods<'tcx> for CodegenCx<'ll, 'tcx> { type_names::push_generic_params( tcx, tcx.normalize_erasing_regions(ty::ParamEnv::reveal_all(), args), - enclosing_fn_def_id, &mut name, ); |
