about summary refs log tree commit diff
path: root/clippy_lints/src/declared_lints.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-12 17:53:51 +0000
committerbors <bors@rust-lang.org>2023-12-12 17:53:51 +0000
commit2e96c74dcea20816a34a73d2d3e336a4ebd35eef (patch)
tree3a2501fb436fbf6db698b08a76cafc04fe16a327 /clippy_lints/src/declared_lints.rs
parent52deee25923f0e45ee74b36ca83ff34ccdd14f3d (diff)
parent758d0e8661fd757ed12a07959eae142c695500ed (diff)
downloadrust-2e96c74dcea20816a34a73d2d3e336a4ebd35eef.tar.gz
rust-2e96c74dcea20816a34a73d2d3e336a4ebd35eef.zip
Auto merge of #11829 - J-ZhengLi:issue11438, r=matthiaskrgr
new lint to detect infinite loop

closes: #11438

changelog: add new lint to detect infinite loop

~*I'll change the lint name*~. Should I name it  `infinite_loop` or `infinite_loops` is fine? Ahhhh, English is hard...
Diffstat (limited to 'clippy_lints/src/declared_lints.rs')
-rw-r--r--clippy_lints/src/declared_lints.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/declared_lints.rs b/clippy_lints/src/declared_lints.rs
index d3105ed9d18..2ce938fbe92 100644
--- a/clippy_lints/src/declared_lints.rs
+++ b/clippy_lints/src/declared_lints.rs
@@ -266,6 +266,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
     crate::loops::EXPLICIT_INTO_ITER_LOOP_INFO,
     crate::loops::EXPLICIT_ITER_LOOP_INFO,
     crate::loops::FOR_KV_MAP_INFO,
+    crate::loops::INFINITE_LOOP_INFO,
     crate::loops::ITER_NEXT_LOOP_INFO,
     crate::loops::MANUAL_FIND_INFO,
     crate::loops::MANUAL_FLATTEN_INFO,