about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-26 06:53:53 +0000
committerbors <bors@rust-lang.org>2024-10-26 06:53:53 +0000
commit80d0d927d5069b67cc08c0c65b48e7b6e0cdeeb5 (patch)
tree7a785a040625a44584b8a3a3bb6e859cd6eb7e1b /compiler/rustc_codegen_gcc
parentae4c6b66402cdbda8daa626216efd94e2dbe94b2 (diff)
parent56463df1be31246074c86c21e2174430ad466dbd (diff)
downloadrust-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_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/src/callee.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/src/callee.rs b/compiler/rustc_codegen_gcc/src/callee.rs
index 9ad2e90122f..65972a03e83 100644
--- a/compiler/rustc_codegen_gcc/src/callee.rs
+++ b/compiler/rustc_codegen_gcc/src/callee.rs
@@ -98,8 +98,7 @@ pub fn get_fn<'gcc, 'tcx>(cx: &CodegenCx<'gcc, 'tcx>, instance: Instance<'tcx>)
         // whether we are sharing generics or not. The important thing here is
         // that the visibility we apply to the declaration is the same one that
         // has been applied to the definition (wherever that definition may be).
-        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();
 
         if is_generic {
             // This is a monomorphization. Its expected visibility depends