Skip to content

Commit 9b89d0b

Browse files
authored
Merge pull request #411 from RalfJung/default-run
use default-run
2 parents 911aedf + 444d97f commit 9b89d0b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ["default-run"]
2+
13
[package]
24
authors = ["Scott Olson <scott@solson.me>"]
35
description = "An experimental interpreter for Rust MIR."
@@ -6,6 +8,7 @@ name = "miri"
68
repository = "https://github.com/solson/miri"
79
version = "0.1.0"
810
build = "build.rs"
11+
default-run = "miri"
912

1013
[[bin]]
1114
doc = false

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ how to fix it, you could send a PR. :smile:
3737
## Running tests
3838

3939
```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.
4141
```
4242

4343
## Running miri on your own project('s test suite)
@@ -63,7 +63,7 @@ RUSTFLAGS='-Zalways-encode-mir' xargo build
6363
Now you can run miri against the libstd compiled by xargo:
6464

6565
```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
6767
```
6868

6969
Notice that you will have to re-run the last step of the preparations above when

0 commit comments

Comments
 (0)