@@ -736,7 +736,7 @@ fn never_loop_expr(expr: &Expr, main_loop_id: HirId) -> NeverLoopResult {
736736 }
737737 } ,
738738 ExprKind :: Struct ( _, _, None )
739- | ExprKind :: Yield ( _)
739+ | ExprKind :: Yield ( _, _ )
740740 | ExprKind :: Closure ( _, _, _, _, _)
741741 | ExprKind :: InlineAsm ( _, _, _)
742742 | ExprKind :: Path ( _)
@@ -1245,7 +1245,12 @@ fn is_len_call(expr: &Expr, var: Name) -> bool {
12451245 false
12461246}
12471247
1248- fn is_end_eq_array_len ( cx : & LateContext < ' _ , ' _ > , end : & Expr , limits : ast:: RangeLimits , indexed_ty : Ty < ' _ > ) -> bool {
1248+ fn is_end_eq_array_len < ' tcx > (
1249+ cx : & LateContext < ' _ , ' tcx > ,
1250+ end : & Expr ,
1251+ limits : ast:: RangeLimits ,
1252+ indexed_ty : Ty < ' tcx > ,
1253+ ) -> bool {
12491254 if_chain ! {
12501255 if let ExprKind :: Lit ( ref lit) = end. node;
12511256 if let ast:: LitKind :: Int ( end_int, _) = lit. node;
@@ -1982,7 +1987,7 @@ fn is_ref_iterable_type(cx: &LateContext<'_, '_>, e: &Expr) -> bool {
19821987 match_type ( cx, ty, & paths:: BTREESET )
19831988}
19841989
1985- fn is_iterable_array ( ty : Ty < ' _ > , cx : & LateContext < ' _ , ' _ > ) -> bool {
1990+ fn is_iterable_array < ' tcx > ( ty : Ty < ' tcx > , cx : & LateContext < ' _ , ' tcx > ) -> bool {
19861991 // IntoIterator is currently only implemented for array sizes <= 32 in rustc
19871992 match ty. sty {
19881993 ty:: Array ( _, n) => ( 0 ..=32 ) . contains ( & n. assert_usize ( cx. tcx ) . expect ( "array length" ) ) ,
0 commit comments