Minor cleanup.
authorEric Huss <eric@huss.org>
Wed, 18 Apr 2018 14:03:17 +0000 (07:03 -0700)
committerEric Huss <eric@huss.org>
Fri, 27 Apr 2018 20:22:01 +0000 (13:22 -0700)
src/cargo/util/toml/mod.rs
tests/testsuite/profiles.rs

index 34aad6e05c6dbe8a472023f4aef9d391f2cba44d..c8ae4839dba1c11ba0ebf9a0a687d510783385c2 100644 (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(())
     }
index 8b644055a08ce857d8b6872043848852f187b6cc..978efd79ce6794748d505a235ca9fc41922af4c1 100644 (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",