Skip to content

Commit aa2ac38

Browse files
committed
needless-lifetime / add known problem item
1 parent 124420f commit aa2ac38

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clippy_lints/src/lifetimes.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ declare_clippy_lint! {
2626
/// complicated, while there is nothing out of the ordinary going on. Removing
2727
/// them leads to more readable code.
2828
///
29-
/// **Known problems:** Potential false negatives: we bail out if the function
30-
/// has a `where` clause where lifetimes are mentioned.
29+
/// **Known problems:**
30+
/// - We bail out if the function has a `where` clause where lifetimes
31+
/// are mentioned due to potenial false positives.
32+
/// - Lifetime bounds such as `impl Foo + 'a` and `T: 'a` must be elided with the
33+
/// placeholder notation `'_` because the fully elided notation leaves the type bound to `'static`.
3134
///
3235
/// **Example:**
3336
/// ```rust

0 commit comments

Comments
 (0)