Commit d2dbbf7
committed
Ignore dead code lint in tests
New in nightly-2024-03-24 from rust-lang/rust#119552.
warning: field `x` is never read
--> tests/regression/issue795.rs:11:15
|
11 | Variant { x: u8 },
| ------- ^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
warning: field `i` is never read
--> tests/regression/issue845.rs:63:9
|
61 | pub struct Struct {
| ------ field in this struct
62 | #[serde(deserialize_with = "deserialize_integer_or_string")]
63 | pub i: i64,
| ^
|
= note: `Struct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis1 parent 8e7b37b commit d2dbbf7
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
0 commit comments