Skip to content

Commit 77761f3

Browse files
committed
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 faf0852#diff-3cff50afc88a11e641a6851dd19471a7e6470f05dd0cddaf2271e5cdd9936b73L2125
2 parents b6d7ff3 + cf47879 commit 77761f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_resolve/src/late.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2916,9 +2916,9 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
29162916
}
29172917
}
29182918

2919-
fn with_generic_param_rib<'c, F>(
2920-
&'c mut self,
2921-
params: &'c [GenericParam],
2919+
fn with_generic_param_rib<F>(
2920+
&mut self,
2921+
params: &[GenericParam],
29222922
kind: RibKind<'ra>,
29232923
binder: NodeId,
29242924
generics_kind: LifetimeBinderKind,

0 commit comments

Comments
 (0)