Skip to content

Commit 16ac7ec

Browse files
committed
tweak comments, remove debug output
1 parent bb47df9 commit 16ac7ec

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ os:
1111
- osx
1212

1313
before_script:
14-
# macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
14+
# macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307, https://github.com/travis-ci/travis-ci/issues/10165)
1515
- if [[ "$TRAVIS_OS_NAME" == osx ]]; then rvm get stable; fi
1616
# Compute the rust version we use. We do not use "language: rust" to have more control here.
1717
- |
@@ -37,11 +37,11 @@ script:
3737
cargo test --release --all-features &&
3838
cargo install --all-features --force --path .
3939
- |
40-
# starting here, use MIR-full libstd
40+
# Get ourselves a MIR-full libstd
4141
cargo miri setup &&
4242
export MIRI_SYSROOT=~/.miri/HOST
4343
- |
44-
# run all tests with full mir
44+
# Test miri with full MIR
4545
cargo test --release --all-features
4646
- |
4747
# Test cargo integration

appveyor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ build: false
2727
test_script:
2828
- set RUSTFLAGS=-g
2929
- set RUST_BACKTRACE=1
30+
# Test plain miri
3031
- cargo build --release --all-features --all-targets
3132
- cargo test --release --all-features
33+
# Get ourselves a MIR-full libstd
3234
- cargo run --release --all-features --bin cargo-miri -- miri setup
3335
- set MIRI_SYSROOT=%USERPROFILE%\.miri\HOST
36+
# Test miri with full MIR
3437
- cargo test --release --all-features
3538

3639
notifications:

src/bin/cargo-miri.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,8 @@ fn setup(ask_user: bool) {
137137
// Then, we also need rust-src. Let's see if it is already installed.
138138
let sysroot = Command::new("rustc").args(&["--print", "sysroot"]).output().unwrap().stdout;
139139
let sysroot = std::str::from_utf8(&sysroot[..]).unwrap();
140-
let src = Path::new(sysroot.trim_end_matches('\n')).join("lib/rustlib/src");
140+
let src = Path::new(sysroot.trim_end_matches('\n')).join("lib").join("rustlib").join("src");
141141
if !src.exists() {
142-
println!("Could not find {:?}", src);
143142
if ask_user {
144143
ask("It seems you do not have the rust-src component installed. I will run `rustup component add rust-src`. Proceed?");
145144
}

0 commit comments

Comments
 (0)