File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ cargo-features = [" default-run" ]
2
+
1
3
[package ]
2
4
authors = [" Scott Olson <scott@solson.me>" ]
3
5
description = " An experimental interpreter for Rust MIR."
@@ -6,6 +8,7 @@ name = "miri"
6
8
repository = " https://github.com/solson/miri"
7
9
version = " 0.1.0"
8
10
build = " build.rs"
11
+ default-run = " miri"
9
12
10
13
[[bin ]]
11
14
doc = false
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ how to fix it, you could send a PR. :smile:
37
37
## Running tests
38
38
39
39
``` sh
40
- cargo run --bin miri tests/run-pass-fullmir /vecs.rs # Or whatever test you like.
40
+ cargo run tests/run-pass/vecs.rs # Or whatever test you like.
41
41
```
42
42
43
43
## Running miri on your own project('s test suite)
@@ -63,7 +63,7 @@ RUSTFLAGS='-Zalways-encode-mir' xargo build
63
63
Now you can run miri against the libstd compiled by xargo:
64
64
65
65
``` sh
66
- MIRI_SYSROOT=~ /.xargo/HOST cargo run --bin miri tests/run-pass-fullmir/hashmap.rs
66
+ MIRI_SYSROOT=~ /.xargo/HOST cargo run tests/run-pass-fullmir/hashmap.rs
67
67
```
68
68
69
69
Notice that you will have to re-run the last step of the preparations above when
You can’t perform that action at this time.
0 commit comments