@@ -3,7 +3,7 @@ mod explicit_counter_loop;
33mod explicit_into_iter_loop;
44mod explicit_iter_loop;
55mod for_kv_map;
6- mod infinite_loops ;
6+ mod infinite_loop ;
77mod iter_next_loop;
88mod manual_find;
99mod manual_flatten;
@@ -642,7 +642,7 @@ declare_clippy_lint! {
642642 /// and lint accordingly.
643643 ///
644644 /// ### Why is this bad?
645- /// A loop should be gently exited somewhere, or at lease mark its parent function as
645+ /// A loop should be gently exited somewhere, or at least mark its parent function as
646646 /// never return (`!`).
647647 ///
648648 /// ### Example
@@ -673,9 +673,9 @@ declare_clippy_lint! {
673673 /// }
674674 /// ```
675675 #[ clippy:: version = "1.75.0" ]
676- pub INFINITE_LOOPS ,
676+ pub INFINITE_LOOP ,
677677 restriction,
678- "possibly unintended infinite loops "
678+ "possibly unintended infinite loop "
679679}
680680
681681pub struct Loops {
@@ -712,7 +712,7 @@ impl_lint_pass!(Loops => [
712712 MANUAL_FIND ,
713713 MANUAL_WHILE_LET_SOME ,
714714 UNUSED_ENUMERATE_INDEX ,
715- INFINITE_LOOPS ,
715+ INFINITE_LOOP ,
716716] ) ;
717717
718718impl < ' tcx > LateLintPass < ' tcx > for Loops {
@@ -755,7 +755,7 @@ impl<'tcx> LateLintPass<'tcx> for Loops {
755755 // also check for empty `loop {}` statements, skipping those in #[panic_handler]
756756 empty_loop:: check ( cx, expr, block) ;
757757 while_let_loop:: check ( cx, expr, block) ;
758- infinite_loops :: check ( cx, expr, block, label) ;
758+ infinite_loop :: check ( cx, expr, block, label) ;
759759 }
760760
761761 while_let_on_iterator:: check ( cx, expr) ;
0 commit comments