mirror of
https://github.com/rust-lang/cargo
synced 2024-10-02 05:53:53 +00:00
Minor cleanup.
This commit is contained in:
parent
575d6e819c
commit
62d6f0d023
|
@ -418,13 +418,13 @@ impl TomlProfile {
|
|||
bail!("Profile overrides cannot be nested.");
|
||||
}
|
||||
if self.panic.is_some() {
|
||||
bail!("`panic` may not be specified in a build override.")
|
||||
bail!("`panic` may not be specified in a profile override.")
|
||||
}
|
||||
if self.lto.is_some() {
|
||||
bail!("`lto` may not be specified in a build override.")
|
||||
bail!("`lto` may not be specified in a profile override.")
|
||||
}
|
||||
if self.rpath.is_some() {
|
||||
bail!("`rpath` may not be specified in a build override.")
|
||||
bail!("`rpath` may not be specified in a profile override.")
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -343,7 +343,7 @@ fn profile_in_virtual_manifest_works() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn dep_override_gated() {
|
||||
fn profile_override_gated() {
|
||||
let p = project("foo")
|
||||
.file(
|
||||
"Cargo.toml",
|
||||
|
@ -406,7 +406,7 @@ consider adding `cargo-features = [\"profile-overrides\"]` to the manifest
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn dep_override_basic() {
|
||||
fn profile_override_basic() {
|
||||
let p = project("foo")
|
||||
.file(
|
||||
"Cargo.toml",
|
||||
|
|
Loading…
Reference in a new issue