Skip to content

Commit 8fceac7

Browse files
committed
Merge pull request #2 from killercup/feature/update-rustc
Update to Rust Nightly 2016-04-11
2 parents 539ded2 + 4b9d141 commit 8fceac7

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

README.md

+14-7
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,32 @@ I currently recommend that you install [multirust][multirust] and then use it to
1313
install the current rustc nightly version that works with Miri:
1414

1515
```sh
16-
multirust update nightly-2016-04-05
16+
multirust update nightly-2016-04-11
1717
```
1818

1919
## Build
2020

2121
```sh
22-
multirust run nightly-2016-04-05 cargo build
22+
multirust run nightly-2016-04-11 cargo build
2323
```
2424

2525
## Run a test
2626

2727
```sh
28-
multirust run nightly-2016-04-05 cargo run -- \
29-
--sysroot $HOME/.multirust/toolchains/nightly-2016-04-05 \
28+
multirust run nightly-2016-04-11 cargo run -- \
29+
--sysroot $HOME/.multirust/toolchains/nightly-2016-04-11 \
3030
test/filename.rs
3131
```
3232

33-
If you installed without using multirust, you'll need to adjust the command to
34-
run your cargo and set the `sysroot` to the directory where your rust compiler
35-
is installed (`$sysroot/bin/rustc` should be a valid path).
33+
If you are using [rustup][rustup] (the name of the multirust rewrite in Rust),
34+
the `sysroot` path will also include your build target (e.g.
35+
`$HOME/.multirust/toolchains/nightly-2016-04-11-x86_64-apple-darwin`). You can
36+
see the current toolchain's directory by running `rustup which cargo` (ignoring
37+
the trailing `/bin/cargo).
38+
39+
If you installed without using multirust or rustup, you'll need to adjust the
40+
command to run your cargo and set the `sysroot` to the directory where your
41+
Rust compiler is installed (`$sysroot/bin/rustc` should be a valid path).
3642

3743
## License
3844

@@ -52,3 +58,4 @@ additional terms or conditions.
5258
[mir]: https://github.com/rust-lang/rfcs/blob/master/text/1211-mir.md
5359
[usask]: https://www.usask.ca/
5460
[multirust]: https://github.com/brson/multirust
61+
[rustup]: https://www.rustup.rs

src/interpreter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use arena::TypedArena;
22
use rustc::infer;
33
use rustc::middle::const_val;
4-
use rustc::middle::def_id::DefId;
4+
use rustc::hir::def_id::DefId;
55
use rustc::mir::mir_map::MirMap;
66
use rustc::mir::repr as mir;
77
use rustc::traits::{self, ProjectionMode};

0 commit comments

Comments
 (0)