We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3307176 commit a08a1a3Copy full SHA for a08a1a3
src/cargo/util/toml/mod.rs
@@ -536,9 +536,16 @@ impl TomlProfile {
536
}
537
538
match name {
539
- "package" | "build" | "debug" => {
+ "package" | "build" => {
540
failure::bail!("Invalid {}: `{}`", what, name);
541
542
+ "debug" if what == "profile" => {
543
+ if what == "profile name" {
544
+ // Allowed, but will emit warnings
545
+ } else {
546
+ failure::bail!("Invalid {}: `{}`", what, name);
547
+ }
548
549
"doc" if what == "dir-name" => {
550
551
0 commit comments