From c23a457e72abe608715ac76f076f47dc42af07a5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 20:31:44 +0200 Subject: Merging upstream version 1.74.1+dfsg1. Signed-off-by: Daniel Baumann --- src/tools/cargo/tests/testsuite/metadata.rs | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'src/tools/cargo/tests/testsuite/metadata.rs') diff --git a/src/tools/cargo/tests/testsuite/metadata.rs b/src/tools/cargo/tests/testsuite/metadata.rs index ac2cec396..fbead4dea 100644 --- a/src/tools/cargo/tests/testsuite/metadata.rs +++ b/src/tools/cargo/tests/testsuite/metadata.rs @@ -1821,8 +1821,11 @@ fn cargo_metadata_with_invalid_authors_field() { r#"[ERROR] failed to parse manifest at `[..]` Caused by: - invalid type: string "", expected a vector of strings or workspace - in `package.authors`"#, + TOML parse error at line 3, column 27 + | + 3 | authors = "" + | ^^ + invalid type: string "", expected a vector of strings or workspace"#, ) .run(); } @@ -1846,8 +1849,11 @@ fn cargo_metadata_with_invalid_version_field() { r#"[ERROR] failed to parse manifest at `[..]` Caused by: - invalid type: integer `1`, expected SemVer version - in `package.version`"#, + TOML parse error at line 3, column 27 + | + 3 | version = 1 + | ^ + invalid type: integer `1`, expected SemVer version"#, ) .run(); } @@ -1871,8 +1877,11 @@ fn cargo_metadata_with_invalid_publish_field() { r#"[ERROR] failed to parse manifest at `[..]` Caused by: - invalid type: string "foo", expected a boolean, a vector of strings, or workspace - in `package.publish`"#, + TOML parse error at line 3, column 27 + | + 3 | publish = "foo" + | ^^^^^ + invalid type: string "foo", expected a boolean, a vector of strings, or workspace"#, ) .run(); } -- cgit v1.2.3