Trevor Gross
a70dc297a8
Rollup merge of #127017 - mu001999-contrib:dead/enhance, r=pnkfelix
...
Extend rules of dead code analysis for impls for adts to impls for types refer to adts
The rules of dead code analysis for impl blocks can be extended to self types which refer to adts.
So that we can lint the following unused struct and trait:
```rust
struct Foo; //~ ERROR struct `Foo` is never constructed
trait Trait { //~ ERROR trait `Trait` is never used
fn foo(&self) {}
}
impl Trait for &Foo {}
```
r? `@pnkfelix`
2024-07-26 02:20:29 -04:00
..
2024-07-26 02:20:29 -04:00
2024-06-27 08:05:07 +02:00
2024-06-15 18:18:43 +02:00
2024-06-25 17:22:22 +02:00
2024-07-09 17:35:51 -03:00
2024-06-06 20:39:54 +00:00
2024-06-25 17:22:22 +02:00
2024-05-24 19:31:57 +08:00
2024-05-24 19:31:57 +08:00
2024-05-24 19:31:57 +08:00
2024-05-24 19:31:57 +08:00
2024-05-24 19:31:57 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 16:53:28 +08:00
2024-05-29 16:53:28 +08:00
2024-05-29 16:53:28 +08:00
2024-05-29 16:53:28 +08:00
2024-06-25 17:22:22 +02:00
2024-07-24 13:16:46 -04:00
2024-06-25 22:32:46 +02:00
2024-06-25 22:32:46 +02:00
2024-05-29 16:53:37 +08:00
2024-05-29 16:53:37 +08:00
2024-05-29 16:53:37 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2024-07-18 20:08:38 +00:00
2024-06-21 19:00:18 -04:00
2024-06-21 19:00:18 -04:00
2024-07-11 12:23:44 +10:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-07-07 17:11:05 +02:00
2024-07-07 17:11:05 +02:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-07-11 00:46:47 +02:00
2024-07-11 00:46:47 +02:00
2024-06-27 08:55:28 +10:00
2024-06-27 08:55:28 +10:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-06-23 22:00:52 +00:00
2024-06-06 19:07:05 +02:00
2024-06-06 19:07:05 +02:00
2024-06-13 20:22:21 +00:00