about summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-03-13 19:49:36 -0700
committerPeter Atashian <retep998@gmail.com>2017-03-21 16:26:13 -0400
commitfe2b7a49524c889715fb3346d4d309ecbd6ba651 (patch)
tree40bcd4ded0af76fb077ff5f9969ab71cc669504e /src/bootstrap/lib.rs
parent58c701f5c7dc26d9b55c631006ece52abe1ddce2 (diff)
downloadrust-fe2b7a49524c889715fb3346d4d309ecbd6ba651.tar.gz
rust-fe2b7a49524c889715fb3346d4d309ecbd6ba651.zip
rustbuild: Don't hardcode 'nightly' for Cargo
It now follows rustc release trains
Diffstat (limited to 'src/bootstrap/lib.rs')
-rw-r--r--src/bootstrap/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index 26f3c063061..84254d7d6ae 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -1015,6 +1015,11 @@ impl Build {
         self.package_vers(channel::CFG_RELEASE_NUM)
     }
 
+    /// Returns the value of `package_vers` above for Cargo
+    fn cargo_package_vers(&self) -> String {
+        self.package_vers(&self.cargo_release_num())
+    }
+
     /// Returns the `version` string associated with this compiler for Rust
     /// itself.
     ///