Skip to content

Commit cdd85cc

Browse files
committed
toml: add missing profile name validation
1 parent 97035e2 commit cdd85cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ impl TomlProfile {
474474
}
475475
}
476476

477+
// Profile name validation
478+
Self::validate_name(name, "profile name")?;
479+
477480
// Feature gate on uses of keys related to named profiles
478481
if self.inherits.is_some() {
479482
features.require(Feature::named_profiles())?;

0 commit comments

Comments
 (0)