From 0ae794b71d8ae0804465aafd15257efdb75769fd Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 28 Aug 2023 20:55:29 -0500 Subject: [PATCH] fix(lints): Improve error message on bad data --- src/cargo/util/toml/mod.rs | 2 +- tests/testsuite/lints.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/util/toml/mod.rs b/src/cargo/util/toml/mod.rs index 29ac8cbbc8b5..1c73341f9873 100644 --- a/src/cargo/util/toml/mod.rs +++ b/src/cargo/util/toml/mod.rs @@ -3499,7 +3499,7 @@ impl fmt::Debug for PathValue { } #[derive(Deserialize, Serialize, Debug, Clone)] -#[serde(expecting = "a map")] +#[serde(expecting = "a lints table")] pub struct MaybeWorkspaceLints { #[serde(skip_serializing_if = "is_false")] #[serde(deserialize_with = "bool_no_false", default)] diff --git a/tests/testsuite/lints.rs b/tests/testsuite/lints.rs index 220423f1151d..4273f1cb9a4f 100644 --- a/tests/testsuite/lints.rs +++ b/tests/testsuite/lints.rs @@ -172,7 +172,7 @@ fn malformed_on_nightly() { error: failed to parse manifest[..] Caused by: - invalid type: integer `20`, expected a map + invalid type: integer `20`, expected a lints table ", ) .run();