From cf47879b032ae71017b6fded3840db82dd046b34 Mon Sep 17 00:00:00 2001 From: Theemathas Chirananthavat Date: Fri, 14 Nov 2025 20:30:26 +0700 Subject: [PATCH] Remove unnecessary lifetime in `with_generic_param_rib` Having the same lifetime in two covariant arguments doesn't do anything. The lifetime was unnecessarilly added in https://github.com/rust-lang/rust/commit/faf0852fc1d01aef18fe8098a0f2f601dbfebd9b#diff-3cff50afc88a11e641a6851dd19471a7e6470f05dd0cddaf2271e5cdd9936b73L2125 --- compiler/rustc_resolve/src/late.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index 107803c5c265..a92bc77b5b50 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -2916,9 +2916,9 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> { } } - fn with_generic_param_rib<'c, F>( - &'c mut self, - params: &'c [GenericParam], + fn with_generic_param_rib( + &mut self, + params: &[GenericParam], kind: RibKind<'ra>, binder: NodeId, generics_kind: LifetimeBinderKind,