Skip to content

Commit 16d8706

Browse files
committed
Auto merge of #3820 - alexcrichton:remove-build-date, r=alexcrichton
Remove build date from version This was done by rustc awhile ago anyway and the rustc build system isn't exporting it.
2 parents 5f3b9c4 + 401153c commit 16d8706

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,36 +61,36 @@ matrix:
6161
IMAGE=cross
6262
- env: TARGET=mips64-unknown-linux-gnuabi64
6363
IMAGE=cross
64-
rust: beta
64+
rust: beta-2017-03-03
6565
- env: TARGET=mips64el-unknown-linux-gnuabi64
6666
IMAGE=cross
67-
rust: beta
67+
rust: beta-2017-03-03
6868
- env: TARGET=s390x-unknown-linux-gnu
6969
IMAGE=cross
70-
rust: beta
70+
rust: beta-2017-03-03
7171
- env: TARGET=powerpc-unknown-linux-gnu
7272
IMAGE=cross
73-
rust: beta
73+
rust: beta-2017-03-03
7474
- env: TARGET=powerpc64-unknown-linux-gnu
7575
IMAGE=cross
76-
rust: beta
76+
rust: beta-2017-03-03
7777
- env: TARGET=powerpc64le-unknown-linux-gnu
7878
IMAGE=cross
79-
rust: beta
79+
rust: beta-2017-03-03
8080

8181
# beta/nightly builds
8282
- env: TARGET=x86_64-unknown-linux-gnu
8383
ALT=i686-unknown-linux-gnu
8484
IMAGE=dist
8585
MAKE_TARGETS="test distcheck doc install uninstall"
8686
DEPLOY=0
87-
rust: beta
87+
rust: beta-2017-03-03
8888
- env: TARGET=x86_64-unknown-linux-gnu
8989
ALT=i686-unknown-linux-gnu
9090
IMAGE=dist
9191
MAKE_TARGETS="test distcheck doc install uninstall"
9292
DEPLOY=0
93-
rust: nightly
93+
rust: nightly-2017-03-03
9494

9595
exclude:
9696
- rust: stable

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ install:
3030

3131
# FIXME(#3394) use master rustup
3232
- curl -sSfO https://static.rust-lang.org/rustup/archive/0.6.5/x86_64-pc-windows-msvc/rustup-init.exe
33-
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
33+
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly-2017-03-03
3434
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
3535
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
3636
- if defined OTHER_TARGET rustup target add %OTHER_TARGET%

src/cargo/lib.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ pub struct CommitInfo {
6464
pub struct CfgInfo {
6565
// Information about the git repository we may have been built from.
6666
pub commit_info: Option<CommitInfo>,
67-
// The date that the build was performed.
68-
pub build_date: String,
6967
// The release channel we were built for.
7068
pub release_channel: String,
7169
}
@@ -93,15 +91,9 @@ impl fmt::Display for VersionInfo {
9391
};
9492

9593
if let Some(ref cfg) = self.cfg_info {
96-
match cfg.commit_info {
97-
Some(ref ci) => {
98-
write!(f, " ({} {})",
99-
ci.short_commit_hash, ci.commit_date)?;
100-
},
101-
None => {
102-
write!(f, " (built {})",
103-
cfg.build_date)?;
104-
}
94+
if let Some(ref ci) = cfg.commit_info {
95+
write!(f, " ({} {})",
96+
ci.short_commit_hash, ci.commit_date)?;
10597
}
10698
};
10799
Ok(())
@@ -260,7 +252,6 @@ pub fn version() -> VersionInfo {
260252
patch: env_str!("CARGO_PKG_VERSION_PATCH"),
261253
pre_release: option_env_str!("CARGO_PKG_VERSION_PRE"),
262254
cfg_info: Some(CfgInfo {
263-
build_date: option_env_str!("CFG_BUILD_DATE").unwrap(),
264255
release_channel: option_env_str!("CFG_RELEASE_CHANNEL").unwrap(),
265256
commit_info: commit_info,
266257
}),

0 commit comments

Comments
 (0)