From f6823a6427433e426e4783edb66cee27d341b324 Mon Sep 17 00:00:00 2001 From: Noah Lev Date: Mon, 13 Sep 2021 10:21:06 -0700 Subject: [PATCH] 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. --- tests/testsuite/config.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testsuite/config.rs b/tests/testsuite/config.rs index 1468cdef39a..aa585c993a1 100644 --- a/tests/testsuite/config.rs +++ b/tests/testsuite/config.rs @@ -656,6 +656,7 @@ Caused by: ); #[derive(Debug, Deserialize)] + #[allow(dead_code)] struct S { f1: i64, f2: String, @@ -1155,6 +1156,7 @@ fn table_merge_failure() { ); #[derive(Debug, Deserialize)] + #[allow(dead_code)] struct Table { key: StringList, }