From 1d10de66debee7396e4d7f254fcd97ef0b2b9c6b Mon Sep 17 00:00:00 2001 From: Wilco Kusee Date: Fri, 28 Dec 2018 13:41:33 +0100 Subject: [PATCH] Remove false negatives from known problems --- clippy_lints/src/use_self.rs | 2 -- tests/ui/use_self.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/clippy_lints/src/use_self.rs b/clippy_lints/src/use_self.rs index fb71352a795..b031e8b1c44 100644 --- a/clippy_lints/src/use_self.rs +++ b/clippy_lints/src/use_self.rs @@ -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 diff --git a/tests/ui/use_self.rs b/tests/ui/use_self.rs index 450278f2ed9..b201e160ebd 100644 --- a/tests/ui/use_self.rs +++ b/tests/ui/use_self.rs @@ -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 }