bors 43268141da Auto merge of #9726 - kraktus:fix_use_self, r=Alexendoo
[`use_self`] fix suggestion when full path to struct was given

Previously the following wrong suggestion was given

```rust
impl Error for std::fmt::Error {
    fn custom<T: std::fmt::Display>(_msg: T) -> Self {
-        std::fmt::Error // Should lint
+        Self::Error // Should lint
    }
}
```

Also remove known problem line related to #4140 since it's been closed, and refactor the lint

changelog: [`use_self`] fix suggestion when full path to struct was given
2022-10-27 22:08:07 +00:00
..
2022-10-12 13:29:27 +02:00
2022-10-09 13:07:21 +00:00
2022-10-13 11:40:13 +00:00
2022-10-26 12:24:37 +08:00
2022-10-26 12:24:37 +08:00
2022-10-26 12:24:37 +08:00
2022-10-16 16:59:04 +08:00
2022-10-16 16:59:04 +08:00
2022-10-23 14:06:51 +00:00