@@ -1732,8 +1732,8 @@ fn lint_unnecessary_fold(cx: &LateContext<'_, '_>, expr: &hir::Expr, fold_args:
17321732 if bin_op. node == op;
17331733
17341734 // Extract the names of the two arguments to the closure
1735- if let Some ( first_arg_ident) = get_arg_name( & closure_body. arguments [ 0 ] . pat) ;
1736- if let Some ( second_arg_ident) = get_arg_name( & closure_body. arguments [ 1 ] . pat) ;
1735+ if let Some ( first_arg_ident) = get_arg_name( & closure_body. params [ 0 ] . pat) ;
1736+ if let Some ( second_arg_ident) = get_arg_name( & closure_body. params [ 1 ] . pat) ;
17371737
17381738 if match_var( & * left_expr, first_arg_ident) ;
17391739 if replacement_has_args || match_var( & * right_expr, second_arg_ident) ;
@@ -2345,7 +2345,7 @@ fn lint_flat_map_identity<'a, 'tcx>(
23452345 if let hir:: ExprKind :: Closure ( _, _, body_id, _, _) = arg_node;
23462346 let body = cx. tcx. hir( ) . body( * body_id) ;
23472347
2348- if let hir:: PatKind :: Binding ( _, _, binding_ident, _) = body. arguments [ 0 ] . pat. node;
2348+ if let hir:: PatKind :: Binding ( _, _, binding_ident, _) = body. params [ 0 ] . pat. node;
23492349 if let hir:: ExprKind :: Path ( hir:: QPath :: Resolved ( _, ref path) ) = body. value. node;
23502350
23512351 if path. segments. len( ) == 1 ;
@@ -2390,7 +2390,7 @@ fn lint_search_is_some<'a, 'tcx>(
23902390 if search_method == "find" ;
23912391 if let hir:: ExprKind :: Closure ( _, _, body_id, ..) = search_args[ 1 ] . node;
23922392 let closure_body = cx. tcx. hir( ) . body( body_id) ;
2393- if let Some ( closure_arg) = closure_body. arguments . get( 0 ) ;
2393+ if let Some ( closure_arg) = closure_body. params . get( 0 ) ;
23942394 if let hir:: PatKind :: Ref ( ..) = closure_arg. pat. node;
23952395 then {
23962396 Some ( search_snippet. replacen( '&' , "" , 1 ) )
0 commit comments