@@ -16,38 +16,23 @@ error: field is never read: `f`
16
16
LL | struct B { f: () }
17
17
| ^^^^^
18
18
|
19
- note: `B` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
20
- --> $DIR/clone-debug-dead-code.rs:9:10
21
- |
22
- LL | #[derive(Clone)]
23
- | ^^^^^
24
- = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
19
+ = note: `B` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
25
20
26
21
error: field is never read: `f`
27
22
--> $DIR/clone-debug-dead-code.rs:14:12
28
23
|
29
24
LL | struct C { f: () }
30
25
| ^^^^^
31
26
|
32
- note: `C` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
33
- --> $DIR/clone-debug-dead-code.rs:13:10
34
- |
35
- LL | #[derive(Debug)]
36
- | ^^^^^
37
- = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
27
+ = note: `C` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
38
28
39
29
error: field is never read: `f`
40
30
--> $DIR/clone-debug-dead-code.rs:18:12
41
31
|
42
32
LL | struct D { f: () }
43
33
| ^^^^^
44
34
|
45
- note: `D` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
46
- --> $DIR/clone-debug-dead-code.rs:17:10
47
- |
48
- LL | #[derive(Debug,Clone)]
49
- | ^^^^^ ^^^^^
50
- = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
35
+ = note: `D` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
51
36
52
37
error: field is never read: `f`
53
38
--> $DIR/clone-debug-dead-code.rs:21:12
0 commit comments