mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Update error message
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
2d73a9d544
commit
cd642e1893
@ -566,10 +566,11 @@ impl TomlProfile {
|
||||
|
||||
if let Some(codegen_backend) = &self.codegen_backend {
|
||||
features.require(Feature::codegen_backend())?;
|
||||
if codegen_backend.contains('.') {
|
||||
if codegen_backend.contains(|c| !c.is_ascii_alphanumeric() && c != '_') {
|
||||
bail!(
|
||||
"`profile.{}.codegen-backend` is an external backend, but only builtin codegen \
|
||||
backends are allowed."
|
||||
"`profile.{}.codegen-backend` setting of `{}` is not a valid backend name.",
|
||||
name,
|
||||
codegen_backend,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user