@@ -736,7 +736,7 @@ fn never_loop_expr(expr: &Expr, main_loop_id: HirId) -> NeverLoopResult {
736
736
}
737
737
} ,
738
738
ExprKind :: Struct ( _, _, None )
739
- | ExprKind :: Yield ( _)
739
+ | ExprKind :: Yield ( _, _ )
740
740
| ExprKind :: Closure ( _, _, _, _, _)
741
741
| ExprKind :: InlineAsm ( _, _, _)
742
742
| ExprKind :: Path ( _)
@@ -1245,7 +1245,12 @@ fn is_len_call(expr: &Expr, var: Name) -> bool {
1245
1245
false
1246
1246
}
1247
1247
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 {
1249
1254
if_chain ! {
1250
1255
if let ExprKind :: Lit ( ref lit) = end. node;
1251
1256
if let ast:: LitKind :: Int ( end_int, _) = lit. node;
@@ -1982,7 +1987,7 @@ fn is_ref_iterable_type(cx: &LateContext<'_, '_>, e: &Expr) -> bool {
1982
1987
match_type ( cx, ty, & paths:: BTREESET )
1983
1988
}
1984
1989
1985
- fn is_iterable_array ( ty : Ty < ' _ > , cx : & LateContext < ' _ , ' _ > ) -> bool {
1990
+ fn is_iterable_array < ' tcx > ( ty : Ty < ' tcx > , cx : & LateContext < ' _ , ' tcx > ) -> bool {
1986
1991
// IntoIterator is currently only implemented for array sizes <= 32 in rustc
1987
1992
match ty. sty {
1988
1993
ty:: Array ( _, n) => ( 0 ..=32 ) . contains ( & n. assert_usize ( cx. tcx ) . expect ( "array length" ) ) ,
0 commit comments