mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
Remove false negatives from known problems
This commit is contained in:
@@ -27,11 +27,9 @@
|
||||
/// 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 @@ fn bar() -> Foo<'static> {
|
||||
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 }
|
||||
|
||||
Reference in New Issue
Block a user