Skip to content

Commit

Permalink
Auto merge of rust-lang#9906 - camelid:fix-warnings, r=alexcrichton
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors authored and ehuss committed Sep 14, 2021
1 parent 8f3be5d commit c7b1323
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testsuite/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ Caused by:
);

#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct S {
f1: i64,
f2: String,
Expand Down Expand Up @@ -1155,6 +1156,7 @@ fn table_merge_failure() {
);

#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct Table {
key: StringList,
}
Expand Down

0 comments on commit c7b1323

Please sign in to comment.