@@ -158,7 +158,6 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
158158 #[ allow( dead_code) ] // FIXME(81658): should be used + lint reinstated after #83171 relands.
159159 fn check_for_self_assign ( & mut self , assign : & ' tcx hir:: Expr < ' tcx > ) {
160160 fn check_for_self_assign_helper < ' tcx > (
161- tcx : TyCtxt < ' tcx > ,
162161 typeck_results : & ' tcx ty:: TypeckResults < ' tcx > ,
163162 lhs : & ' tcx hir:: Expr < ' tcx > ,
164163 rhs : & ' tcx hir:: Expr < ' tcx > ,
@@ -177,7 +176,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
177176 }
178177 ( hir:: ExprKind :: Field ( lhs_l, ident_l) , hir:: ExprKind :: Field ( lhs_r, ident_r) ) => {
179178 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) ;
181180 }
182181 return false ;
183182 }
@@ -188,7 +187,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
188187 }
189188
190189 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)
192191 && !assign. span . from_expansion ( )
193192 {
194193 let is_field_assign = matches ! ( lhs. kind, hir:: ExprKind :: Field ( ..) ) ;
0 commit comments