This repository was archived by the owner on Oct 6, 2024. It is now read-only.
Commit d39fb86
committed
Ignore dead code lint in tests
New in nightly-2024-03-24 from rust-lang/rust#119552.
warning: field `0` is never read
--> tests/test_item.rs:64:37
|
64 | pub struct S<$life>(pub &$life ());
| - ^^^^^^^^^^^^^
| |
| field in this struct
...
72 | m!('a);
| ------ in this macro invocation
|
= note: `#[warn(dead_code)]` on by default
= note: this warning originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
64 | pub struct S<$life>(());
| ~~1 parent 14872ad commit d39fb86
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments