Skip to content

Commit 1d10de6

Browse files
committed
Remove false negatives from known problems
1 parent ab42ba4 commit 1d10de6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

clippy_lints/src/use_self.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ use syntax_pos::symbol::keywords::SelfUpper;
2727
/// feels inconsistent.
2828
///
2929
/// **Known problems:**
30-
/// - Does not trigger within locally defined macros (#2098)
3130
/// - False positive when using associated types (#2843)
3231
/// - False positives in some situations when using generics (#3410)
3332
/// - False positive when type from outer function can't be used (#3463)
34-
/// - Does not trigger in lifetimed structs
3533
///
3634
/// **Example:**
3735
/// ```rust

tests/ui/use_self.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ mod lifetimes {
6767
Foo { foo_str: "foo" }
6868
}
6969

70-
// TODO: the lint does not handle lifetimed struct
70+
// FIXME: the lint does not handle lifetimed struct
7171
// `Self` should be applicable here
7272
fn clone(&self) -> Foo<'a> {
7373
Foo { foo_str: self.foo_str }

0 commit comments

Comments
 (0)