Auto merge of #148945 - theemathas:rm_lifetime, r=Kivooeo

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 faf0852fc1 (diff-3cff50afc88a11e641a6851dd19471a7e6470f05dd0cddaf2271e5cdd9936b73L2125)
This commit is contained in:
bors 2025-11-14 22:00:16 +00:00
commit 77761f314d

View file

@ -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<F>(
&mut self,
params: &[GenericParam],
kind: RibKind<'ra>,
binder: NodeId,
generics_kind: LifetimeBinderKind,