We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 760fbdf commit 2701a41Copy full SHA for 2701a41
clippy_lints/src/needless_borrows_for_generic_args.rs
@@ -320,11 +320,11 @@ fn is_mixed_projection_predicate<'tcx>(
320
&& (term_param_ty.index as usize) < generics.parent_count
321
{
322
// The inner-most self type is a type parameter from the current function.
323
- let mut projection_ty = projection_predicate.projection_term;
+ let mut projection_term = projection_predicate.projection_term;
324
loop {
325
- match *projection_ty.self_ty().kind() {
+ match *projection_term.self_ty().kind() {
326
ty::Alias(ty::Projection, inner_projection_ty) => {
327
- projection_ty = inner_projection_ty.into();
+ projection_term = inner_projection_ty.into();
328
},
329
ty::Param(param_ty) => {
330
return (param_ty.index as usize) >= generics.parent_count;
0 commit comments