mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Remove false negatives from known problems
This commit is contained in:
parent
ab42ba4f54
commit
1d10de66de
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue