mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Error on invalid dependency naming
This commit is contained in:
parent
fd25241d3e
commit
420608bc70
@ -1082,6 +1082,7 @@ impl TomlManifest {
|
|||||||
};
|
};
|
||||||
for (n, v) in dependencies.iter() {
|
for (n, v) in dependencies.iter() {
|
||||||
let dep = v.to_dependency(n, cx, kind)?;
|
let dep = v.to_dependency(n, cx, kind)?;
|
||||||
|
validate_package_name(dep.name_in_toml().as_str(), "dependency name", "")?;
|
||||||
cx.deps.push(dep);
|
cx.deps.push(dep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user