Skip to content

Commit c7b1323

Browse files
borsehuss
authored andcommitted
Auto merge of #9906 - camelid:fix-warnings, r=alexcrichton
Fix warnings from better precision of `dead_code` lint The lint now ignores derived `Clone` and `Debug` implementations, as of PR rust-lang/rust#85200, which landed a couple of days ago. I sprinkled `#[allow(dead_code)]` in a few places; the fields are not expected to be read since they are just part of a very specific test.
1 parent 8f3be5d commit c7b1323

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testsuite/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ Caused by:
656656
);
657657

658658
#[derive(Debug, Deserialize)]
659+
#[allow(dead_code)]
659660
struct S {
660661
f1: i64,
661662
f2: String,
@@ -1155,6 +1156,7 @@ fn table_merge_failure() {
11551156
);
11561157

11571158
#[derive(Debug, Deserialize)]
1159+
#[allow(dead_code)]
11581160
struct Table {
11591161
key: StringList,
11601162
}

0 commit comments

Comments
 (0)