From 7e6c83faf172b4e4b803c1f9d8808e936fba99bb Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 11 Mar 2017 18:09:28 -0800 Subject: [PATCH 1/2] Remove build date from version This was done by rustc awhile ago anyway and the rustc build system isn't exporting it. --- src/cargo/lib.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/cargo/lib.rs b/src/cargo/lib.rs index de2dc728862..736a9c04da4 100755 --- a/src/cargo/lib.rs +++ b/src/cargo/lib.rs @@ -64,8 +64,6 @@ pub struct CommitInfo { pub struct CfgInfo { // Information about the git repository we may have been built from. pub commit_info: Option, - // The date that the build was performed. - pub build_date: String, // The release channel we were built for. pub release_channel: String, } @@ -93,15 +91,9 @@ impl fmt::Display for VersionInfo { }; if let Some(ref cfg) = self.cfg_info { - match cfg.commit_info { - Some(ref ci) => { - write!(f, " ({} {})", - ci.short_commit_hash, ci.commit_date)?; - }, - None => { - write!(f, " (built {})", - cfg.build_date)?; - } + if let Some(ref ci) = cfg.commit_info { + write!(f, " ({} {})", + ci.short_commit_hash, ci.commit_date)?; } }; Ok(()) @@ -260,7 +252,6 @@ pub fn version() -> VersionInfo { patch: env_str!("CARGO_PKG_VERSION_PATCH"), pre_release: option_env_str!("CARGO_PKG_VERSION_PRE"), cfg_info: Some(CfgInfo { - build_date: option_env_str!("CFG_BUILD_DATE").unwrap(), release_channel: option_env_str!("CFG_RELEASE_CHANNEL").unwrap(), commit_info: commit_info, }), From 401153c20758184a57c71e83c93692f45261e8d3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 11 Mar 2017 18:17:07 -0800 Subject: [PATCH 2/2] Tweak travis targets and dates Just trying to get a PR to land... --- .travis.yml | 16 ++++++++-------- appveyor.yml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3fa28ffa8ed..6558b1ced12 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,22 +61,22 @@ matrix: IMAGE=cross - env: TARGET=mips64-unknown-linux-gnuabi64 IMAGE=cross - rust: beta + rust: beta-2017-03-03 - env: TARGET=mips64el-unknown-linux-gnuabi64 IMAGE=cross - rust: beta + rust: beta-2017-03-03 - env: TARGET=s390x-unknown-linux-gnu IMAGE=cross - rust: beta + rust: beta-2017-03-03 - env: TARGET=powerpc-unknown-linux-gnu IMAGE=cross - rust: beta + rust: beta-2017-03-03 - env: TARGET=powerpc64-unknown-linux-gnu IMAGE=cross - rust: beta + rust: beta-2017-03-03 - env: TARGET=powerpc64le-unknown-linux-gnu IMAGE=cross - rust: beta + rust: beta-2017-03-03 # beta/nightly builds - env: TARGET=x86_64-unknown-linux-gnu @@ -84,13 +84,13 @@ matrix: IMAGE=dist MAKE_TARGETS="test distcheck doc install uninstall" DEPLOY=0 - rust: beta + rust: beta-2017-03-03 - env: TARGET=x86_64-unknown-linux-gnu ALT=i686-unknown-linux-gnu IMAGE=dist MAKE_TARGETS="test distcheck doc install uninstall" DEPLOY=0 - rust: nightly + rust: nightly-2017-03-03 exclude: - rust: stable diff --git a/appveyor.yml b/appveyor.yml index 7b9e406a2c3..74c51dce68d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -30,7 +30,7 @@ install: # FIXME(#3394) use master rustup - curl -sSfO https://static.rust-lang.org/rustup/archive/0.6.5/x86_64-pc-windows-msvc/rustup-init.exe - - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly + - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly-2017-03-03 - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET% - if defined OTHER_TARGET rustup target add %OTHER_TARGET%