about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Nielens <tim.nielens@gmail.com>2020-09-30 00:08:19 +0200
committerTim Nielens <tim.nielens@gmail.com>2020-09-30 00:08:19 +0200
commitaa2ac38fa7224bff68eeff8781321c9c355e5980 (patch)
treeaf15f4b02d506d9250e32aea456b1a9f7ece3872
parent124420f920fd9323e69829a35876add8c358a666 (diff)
downloadrust-aa2ac38fa7224bff68eeff8781321c9c355e5980.tar.gz
rust-aa2ac38fa7224bff68eeff8781321c9c355e5980.zip
needless-lifetime / add known problem item
-rw-r--r--clippy_lints/src/lifetimes.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/clippy_lints/src/lifetimes.rs b/clippy_lints/src/lifetimes.rs
index 1d17fbd3725..530968c191f 100644
--- a/clippy_lints/src/lifetimes.rs
+++ b/clippy_lints/src/lifetimes.rs
@@ -26,8 +26,11 @@ declare_clippy_lint! {
     /// 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