about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaeyong Sung <jaeyong0201@gmail.com>2022-02-13 13:36:27 +0900
committerJaeyong Sung <jaeyong0201@gmail.com>2022-02-13 13:36:27 +0900
commit48d310e8698eea1b9c771bdd18042a921f9f45b7 (patch)
treee7044c13c89817fcb24c8f91ec37c44813a5f1fe
parent2ebe7516a898ddd44c9021b080cbaf079e32121c (diff)
downloadrust-48d310e8698eea1b9c771bdd18042a921f9f45b7.tar.gz
rust-48d310e8698eea1b9c771bdd18042a921f9f45b7.zip
add documentation
-rw-r--r--clippy_lints/src/only_used_in_recursion.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/clippy_lints/src/only_used_in_recursion.rs b/clippy_lints/src/only_used_in_recursion.rs
index b8e0bd8acb3..21102e759e4 100644
--- a/clippy_lints/src/only_used_in_recursion.rs
+++ b/clippy_lints/src/only_used_in_recursion.rs
@@ -46,6 +46,12 @@ declare_clippy_lint! {
     ///
     /// For example, the argument `b` is only used in recursion, but the lint would not catch it.
     ///
+    /// List of some examples that can not be caught:
+    /// - binary operation of non-primitive types
+    /// - closure usage
+    /// - some `break` relative operations
+    /// - struct pattern binding
+    ///
     /// ### Example
     /// ```rust
     /// fn f(a: usize, b: usize) -> usize {