]> git.lizzy.rs Git - rust.git/commitdiff
needless-lifetime / add known problem item
authorTim Nielens <tim.nielens@gmail.com>
Tue, 29 Sep 2020 22:08:19 +0000 (00:08 +0200)
committerTim Nielens <tim.nielens@gmail.com>
Tue, 29 Sep 2020 22:08:19 +0000 (00:08 +0200)
clippy_lints/src/lifetimes.rs

index 1d17fbd372541bbeb8a1fb99eca01dd2db7035ef..530968c191f9643dbff3612d4a5c344ac781cb5c 100644 (file)
     /// complicated, while there is nothing out of the ordinary going on. Removing
     /// them leads to more readable code.
     ///
-    /// **Known problems:** Potential false negatives: we bail out if the function
-    /// has a `where` clause where lifetimes are mentioned.
+    /// **Known problems:**
+    /// - We bail out if the function has a `where` clause where lifetimes
+    /// are mentioned due to potenial false positives.
+    /// - Lifetime bounds such as `impl Foo + 'a` and `T: 'a` must be elided with the
+    /// placeholder notation `'_` because the fully elided notation leaves the type bound to `'static`.
     ///
     /// **Example:**
     /// ```rust