about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilco Kusee <wilcokusee@gmail.com>2018-12-28 13:41:33 +0100
committerWilco Kusee <wilcokusee@gmail.com>2018-12-30 08:23:39 +0100
commit1d10de66debee7396e4d7f254fcd97ef0b2b9c6b (patch)
treed1090a8de756781e24a611c264e5cdf638e03480
parentab42ba4f54d2be62f271bad44f065d1814d17d4a (diff)
downloadrust-1d10de66debee7396e4d7f254fcd97ef0b2b9c6b.tar.gz
rust-1d10de66debee7396e4d7f254fcd97ef0b2b9c6b.zip
Remove false negatives from known problems
-rw-r--r--clippy_lints/src/use_self.rs2
-rw-r--r--tests/ui/use_self.rs2
2 files changed, 1 insertions, 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 }