diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-26 06:29:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-26 06:29:48 +0200 |
| commit | 56463df1be31246074c86c21e2174430ad466dbd (patch) | |
| tree | 633e15aac3bf601aa81cd0122dd0cbb3414566d0 /compiler/rustc_codegen_gcc | |
| parent | 42a0e40e4668e0a2fa0fc1551001bbba8fb0d157 (diff) | |
| parent | f6fea8334271e05f1e00e95cdcc4ca7b3558d130 (diff) | |
| download | rust-56463df1be31246074c86c21e2174430ad466dbd.tar.gz rust-56463df1be31246074c86c21e2174430ad466dbd.zip | |
Rollup merge of #132168 - fee1-dead-contrib:fxclean, r=compiler-errors
Effects cleanup - removed extra bits from predicates queries that are no longer needed in the new system - removed the need for `non_erasable_generics` to take in tcx and DefId, removed unused arguments in callers r? compiler-errors
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/callee.rs | 3 |
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 |
