Skip to content

Commit ffb1476

Browse files
committed
Auto merge of #1021 - RalfJung:rustc-dev, r=RalfJung
Adjust for rustc-dev
2 parents 1bf282f + 39cdc35 commit ffb1476

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.appveyor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ install:
3131
- rustup component remove rust-docs & exit 0
3232
- rustup update
3333
# Install "master" toolchain
34-
- cargo install rustup-toolchain-install-master & exit 0
35-
- rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c cargo -c rust-src
34+
- cargo install rustup-toolchain-install-master -f
35+
# We need to install cargo here as well or else the DLL search path inside `cargo run`
36+
# will be for the wrong toolchain. (On Unix, `./miri` takes care of this, but not here.)
37+
- rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c rust-src -c rustc-dev -c cargo
3638
- rustup default master
3739
- rustc --version
3840
- cargo --version

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ before_script:
3838
- rustup component remove rust-docs || echo "rust-docs already gone"
3939
- rustup update
4040
# Install "master" toolchain
41-
- cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
42-
- travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH -c rust-src
41+
- cargo install rustup-toolchain-install-master -f
42+
- travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH -c rust-src -c rustc-dev
4343
- rustup default master
4444
- rustc --version
4545
- cargo --version

CONTRIBUTING.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ Miri heavily relies on internal rustc interfaces to execute MIR. Still, some
3131
things (like adding support for a new intrinsic or a shim for an external
3232
function being called) can be done by working just on the Miri side.
3333

34-
To prepare, make sure you are using a nightly Rust compiler. Then you should be
35-
able to just `cargo build` Miri.
34+
To prepare, make sure you are using a nightly Rust compiler. You also need to
35+
have the `rust-src` and `rustc-dev` components installed, which you can add via
36+
`rustup component add rust-src rustc-dev`. Then you should be able to just
37+
`cargo build` Miri.
3638

3739
In case this fails, your nightly might be incompatible with Miri master. The
3840
`rust-version` file contains the commit hash of rustc that Miri is currently
@@ -41,7 +43,7 @@ to wait for the next nightly to get released. You can also use
4143
[`rustup-toolchain-install-master`](https://github.com/kennytm/rustup-toolchain-install-master)
4244
to install that exact version of rustc as a toolchain:
4345
```
44-
rustup-toolchain-install-master $(cat rust-version) -c rust-src
46+
rustup-toolchain-install-master $(cat rust-version) -c rust-src -c rustc-dev
4547
```
4648

4749
Another common problem is outdated dependencies: Miri does not come with a

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
55e00631e5bc5b16d40232914e57deeea197a8e4
1+
8e0007f829661e57d008d2e908c95f6e84b04b25

0 commit comments

Comments
 (0)