You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,17 @@ To run the tests yourself, make sure you have Miri installed (`rustup component
13
13
14
14
This will run the test suite of the standard library of your current toolchain.
15
15
`--all-targets` means that doc tests are skipped; those should use separate Miri flags as there are some (expected) memory leaks.
16
-
If you are working on the standard library and want to check that the tests pass with your modifications, set `RUST_SRC` to the checkout you are working in:
16
+
17
+
If you are working on the standard library and want to check that the tests pass with your modifications, set `MIRI_LIB_SRC` to the `library` folder of the checkout you are working in:
Here, `~/path/to/rustc` should be the directory containing `x.py`.
23
24
Then the test suite will be compiled from the standard library in that directory.
24
25
Make sure that is as close to your rustup default toolchain as possible, as the toolchain will still be used to build that standard library and its test suite.
26
+
If you are getting strange build errors, `cargo clean` can often fix that.
25
27
26
28
`run-test` also accepts parameters that are passed to `cargo test` and the test runner,
27
29
and `MIRIFLAGS` can be used as usual to pass parameters to Miri:
0 commit comments