]> git.lizzy.rs Git - rust.git/commitdiff
add documentation
authorJaeyong Sung <jaeyong0201@gmail.com>
Sun, 13 Feb 2022 04:36:27 +0000 (13:36 +0900)
committerJaeyong Sung <jaeyong0201@gmail.com>
Sun, 13 Feb 2022 04:36:27 +0000 (13:36 +0900)
clippy_lints/src/only_used_in_recursion.rs

index b8e0bd8acb3e71e36a5e7df113db0ec4a2994cf4..21102e759e473c0859b30c0224569814002e8891 100644 (file)
     ///
     /// 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 {