diff --git a/crates/cargo-util-schemas/src/manifest/mod.rs b/crates/cargo-util-schemas/src/manifest/mod.rs index fbf645015..e3e7eca5e 100644 --- a/crates/cargo-util-schemas/src/manifest/mod.rs +++ b/crates/cargo-util-schemas/src/manifest/mod.rs @@ -1088,7 +1088,7 @@ impl<'de> de::Deserialize<'de> for TomlDebugInfo { D: de::Deserializer<'de>, { use serde::de::Error as _; - let expecting = "a boolean, 0, 1, 2, \"line-tables-only\", or \"line-directives-only\""; + let expecting = "a boolean, 0, 1, 2, \"none\", \"limited\", \"full\", \"line-tables-only\", or \"line-directives-only\""; UntaggedEnumVisitor::new() .expecting(expecting) .bool(|value| { diff --git a/tests/testsuite/bad_config.rs b/tests/testsuite/bad_config.rs index f431fd9b5..3c37e5d72 100644 --- a/tests/testsuite/bad_config.rs +++ b/tests/testsuite/bad_config.rs @@ -2686,7 +2686,7 @@ fn bad_debuginfo() { p.cargo("check") .with_status(101) .with_stderr_data(str![[r#" -[ERROR] invalid value: string "a", expected a boolean, 0, 1, 2, "line-tables-only", or "line-directives-only" +[ERROR] invalid value: string "a", expected a boolean, 0, 1, 2, "none", "limited", "full", "line-tables-only", or "line-directives-only" --> Cargo.toml:9:25 | 9 | debug = 'a' @@ -2719,7 +2719,7 @@ fn bad_debuginfo2() { p.cargo("check") .with_status(101) .with_stderr_data(str![[r#" -[ERROR] invalid type: floating point `3.6`, expected a boolean, 0, 1, 2, "line-tables-only", or "line-directives-only" +[ERROR] invalid type: floating point `3.6`, expected a boolean, 0, 1, 2, "none", "limited", "full", "line-tables-only", or "line-directives-only" --> Cargo.toml:9:25 | 9 | debug = 3.6