Remove false negatives from known problems

This commit is contained in:
Wilco Kusee 2018-12-28 13:41:33 +01:00
parent ab42ba4f54
commit 1d10de66de
2 changed files with 1 additions and 3 deletions

View file

@ -27,11 +27,9 @@ use syntax_pos::symbol::keywords::SelfUpper;
/// feels inconsistent.
///
/// **Known problems:**
/// - Does not trigger within locally defined macros (#2098)
/// - False positive when using associated types (#2843)
/// - False positives in some situations when using generics (#3410)
/// - False positive when type from outer function can't be used (#3463)
/// - Does not trigger in lifetimed structs
///
/// **Example:**
/// ```rust

View file

@ -67,7 +67,7 @@ mod lifetimes {
Foo { foo_str: "foo" }
}
// TODO: the lint does not handle lifetimed struct
// FIXME: the lint does not handle lifetimed struct
// `Self` should be applicable here
fn clone(&self) -> Foo<'a> {
Foo { foo_str: self.foo_str }