Minor cleanup.

This commit is contained in:
Eric Huss 2018-04-18 07:03:17 -07:00
parent 575d6e819c
commit 62d6f0d023
2 changed files with 5 additions and 5 deletions

View file

@ -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(())
}

View file

@ -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",