Skip to content

Commit 1fb857d

Browse files
committed
Auto merge of #1043 - RalfJung:cache, r=RalfJung
Cache rustup-toolchain-install-master again We temporarily disabled the cache just to get it updated.
2 parents 5dc433a + 9ca277f commit 1fb857d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ install:
2828
- set PATH=%USERPROFILE%\.cargo\bin;%PATH%
2929
- rustup default stable
3030
- rustup uninstall beta
31-
- rustup component remove rust-docs & exit 0
3231
- rustup update
3332
# Install "master" toolchain
34-
- cargo install rustup-toolchain-install-master -f
33+
- cargo install rustup-toolchain-install-master & exit 0
3534
# We need to install cargo here as well or else the DLL search path inside `cargo run`
3635
# will be for the wrong toolchain. (On Unix, `./miri` takes care of this, but not here.)
3736
- rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c rust-src -c rustc-dev -c cargo

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ before_script:
3535
- export PATH=$HOME/.cargo/bin:$PATH
3636
- rustup default stable
3737
- rustup uninstall beta
38-
- rustup component remove rust-docs || echo "rust-docs already gone"
3938
- rustup update
4039
# Install "master" toolchain
41-
- cargo install rustup-toolchain-install-master -f
40+
- cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
4241
- travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH -c rust-src -c rustc-dev
4342
- rustup default master
4443
- rustc --version

src/bin/cargo-miri.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ use std::path::{PathBuf, Path};
66
use std::process::Command;
77
use std::ops::Not;
88

9+
const XARGO_MIN_VERSION: (u32, u32, u32) = (0, 3, 17);
10+
911
const CARGO_MIRI_HELP: &str = r#"Interprets bin crates and tests in Miri
1012
1113
Usage:
@@ -258,7 +260,7 @@ fn setup(ask_user: bool) {
258260
}
259261

260262
// First, we need xargo.
261-
if xargo_version().map_or(true, |v| v < (0, 3, 16)) {
263+
if xargo_version().map_or(true, |v| v < XARGO_MIN_VERSION) {
262264
if std::env::var("XARGO").is_ok() {
263265
// The user manually gave us a xargo binary; don't do anything automatically.
264266
show_error(format!("Your xargo is too old; please upgrade to the latest version"))

0 commit comments

Comments
 (0)