@@ -158,7 +158,6 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
158
158
#[ allow( dead_code) ] // FIXME(81658): should be used + lint reinstated after #83171 relands.
159
159
fn check_for_self_assign ( & mut self , assign : & ' tcx hir:: Expr < ' tcx > ) {
160
160
fn check_for_self_assign_helper < ' tcx > (
161
- tcx : TyCtxt < ' tcx > ,
162
161
typeck_results : & ' tcx ty:: TypeckResults < ' tcx > ,
163
162
lhs : & ' tcx hir:: Expr < ' tcx > ,
164
163
rhs : & ' tcx hir:: Expr < ' tcx > ,
@@ -177,7 +176,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
177
176
}
178
177
( hir:: ExprKind :: Field ( lhs_l, ident_l) , hir:: ExprKind :: Field ( lhs_r, ident_r) ) => {
179
178
if ident_l == ident_r {
180
- return check_for_self_assign_helper ( tcx , typeck_results, lhs_l, lhs_r) ;
179
+ return check_for_self_assign_helper ( typeck_results, lhs_l, lhs_r) ;
181
180
}
182
181
return false ;
183
182
}
@@ -188,7 +187,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
188
187
}
189
188
190
189
if let hir:: ExprKind :: Assign ( lhs, rhs, _) = assign. kind {
191
- if check_for_self_assign_helper ( self . tcx , self . typeck_results ( ) , lhs, rhs)
190
+ if check_for_self_assign_helper ( self . typeck_results ( ) , lhs, rhs)
192
191
&& !assign. span . from_expansion ( )
193
192
{
194
193
let is_field_assign = matches ! ( lhs. kind, hir:: ExprKind :: Field ( ..) ) ;
0 commit comments