Skip to content

Commit 65357fa

Browse files
authored
Merge pull request #425 from solson/rustup
Rustup
2 parents 0efc6b2 + 1fbf998 commit 65357fa

File tree

14 files changed

+224
-240
lines changed

14 files changed

+224
-240
lines changed

.travis.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
language: rust
22
cache: cargo
3+
rust:
4+
- nightly
35

46
os:
5-
- osx
67
- linux
8+
- osx
79

8-
rust:
9-
- nightly
1010
before_script:
1111
# mac os weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
1212
- curl -sSL https://rvm.io/mpapis.asc | gpg --import -
1313
- rvm get stable
1414
# in a cronjob, use latest (not pinned) nightly
1515
- if [ "$TRAVIS_EVENT_TYPE" = cron ]; then rustup override set nightly; fi
16-
# actual travis code
16+
# prepare
1717
- export PATH=$HOME/.local/bin:$PATH
1818
- rustup target add i686-unknown-linux-gnu
1919
- rustup target add i686-pc-windows-gnu
2020
- rustup target add i686-pc-windows-msvc
2121
- rustup component add rust-src
2222
- cargo install xargo || echo "skipping xargo install"
23-
- export RUST_SYSROOT=$HOME/rust
23+
2424
script:
2525
- set -e
2626
- |
2727
# Test and install plain miri
2828
cargo build --release --all-features &&
29-
RUST_BACKTRACE=1 cargo test --release --all-features --all &&
29+
cargo test --release --all-features &&
3030
cargo install --all-features --force
3131
- |
3232
# test that the rustc_tests binary compiles
@@ -55,7 +55,8 @@ script:
5555
cd ..
5656
- |
5757
# and run all tests with full mir
58-
cargo test --release
58+
cargo test --release --all-features
59+
5960
notifications:
6061
email:
6162
on_success: never

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ install:
2626
- cd xargo
2727
- set RUSTFLAGS=-Zalways-encode-mir -Zmir-emit-validate=1
2828
- xargo build
29-
- set RUSTFLAGS=
3029
- cd ..
3130

3231
build: false
3332

3433
test_script:
34+
- set RUSTFLAGS=-g
3535
- set RUST_BACKTRACE=1
3636
- cargo build --release
3737
- cargo test --release

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2018-08-03
1+
nightly-2018-08-14

rustc_tests/Cargo.lock

-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rustc_tests/src/main.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
extern crate miri;
33
extern crate getopts;
44
extern crate rustc;
5+
extern crate rustc_metadata;
56
extern crate rustc_driver;
67
extern crate rustc_errors;
78
extern crate rustc_codegen_utils;
@@ -14,7 +15,7 @@ use std::io;
1415

1516

1617
use rustc::session::Session;
17-
use rustc::middle::cstore::CrateStore;
18+
use rustc_metadata::cstore::CStore;
1819
use rustc_driver::{Compilation, CompilerCalls, RustcDefaultCalls};
1920
use rustc_driver::driver::{CompileState, CompileController};
2021
use rustc::session::config::{self, Input, ErrorOutputType};
@@ -56,7 +57,7 @@ impl<'a> CompilerCalls<'a> for MiriCompilerCalls {
5657
trans: &CodegenBackend,
5758
matches: &getopts::Matches,
5859
sess: &Session,
59-
cstore: &CrateStore,
60+
cstore: &CStore,
6061
input: &Input,
6162
odir: &Option<PathBuf>,
6263
ofile: &Option<PathBuf>,

src/bin/miri.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
extern crate getopts;
44
extern crate miri;
55
extern crate rustc;
6+
extern crate rustc_metadata;
67
extern crate rustc_driver;
78
extern crate rustc_errors;
89
extern crate rustc_codegen_utils;
@@ -12,7 +13,7 @@ extern crate syntax;
1213
extern crate log;
1314

1415
use rustc::session::Session;
15-
use rustc::middle::cstore::CrateStore;
16+
use rustc_metadata::cstore::CStore;
1617
use rustc_driver::{Compilation, CompilerCalls, RustcDefaultCalls};
1718
use rustc_driver::driver::{CompileState, CompileController};
1819
use rustc::session::config::{self, Input, ErrorOutputType};
@@ -70,7 +71,7 @@ impl<'a> CompilerCalls<'a> for MiriCompilerCalls {
7071
codegen_backend: &CodegenBackend,
7172
matches: &getopts::Matches,
7273
sess: &Session,
73-
cstore: &CrateStore,
74+
cstore: &CStore,
7475
input: &Input,
7576
odir: &Option<PathBuf>,
7677
ofile: &Option<PathBuf>,

0 commit comments

Comments
 (0)