@@ -448,28 +448,19 @@ Some native rustc `-Z` flags are also very relevant for Miri:
448
448
* `-Zmir-emit-retag` controls whether `Retag` statements are emitted. Miri
449
449
enables this per default because it is needed for [Stacked Borrows] and [Tree Borrows].
450
450
451
- Moreover, Miri recognizes some environment variables (unless noted otherwise, these are supported
452
- by all intended entry points, i.e. `cargo miri` and `./miri {test,run}`) :
453
-
454
- * `MIRI_AUTO_OPS` indicates whether the automatic execution of rustfmt, clippy and toolchain setup
455
- should be skipped. If it is set to `no`, they are skipped. This is used to allow automated IDE
456
- actions to avoid the auto ops.
457
- * `MIRI_LOG`, `MIRI_BACKTRACE` control logging and backtrace printing during
458
- Miri executions, also [see "Testing the Miri driver" in `CONTRIBUTING.md`][testing-miri].
451
+ Moreover, Miri recognizes some environment variables :
452
+
459
453
* `MIRIFLAGS` defines extra flags to be passed to Miri.
460
454
* `MIRI_LIB_SRC` defines the directory where Miri expects the sources of the standard library that
461
455
it will build and use for interpretation. This directory must point to the `library` subdirectory
462
456
of a `rust-lang/rust` repository checkout.
463
- * `MIRI_SYSROOT` indicates the sysroot to use. When using `cargo miri`, this skips the automatic
457
+ * `MIRI_SYSROOT` indicates the sysroot to use. When using `cargo miri test`/`cargo miri run `, this skips the automatic
464
458
setup -- only set this if you do not want to use the automatically created sysroot. When invoking
465
459
` cargo miri setup` , this indicates where the sysroot will be put.
466
- * `MIRI_TEST_THREADS` (recognized by `./miri test`): set the number of threads to use for running tests.
467
- By default, the number of cores is used.
468
460
* `MIRI_NO_STD` makes sure that the target's sysroot is built without libstd. This allows testing
469
- and running no_std programs. (Miri has a heuristic to detect no-std targets based on the target
470
- name; this environment variable is only needed when that heuristic fails.)
471
- * `MIRI_SKIP_UI_CHECKS` (recognized by `./miri test`): don't check whether the
472
- ` stderr` or `stdout` files match the actual output.
461
+ and running no_std programs. This should *not usually be used*; Miri has a heuristic to detect
462
+ no-std targets based on the target name. Setting this on a target that does support libstd can
463
+ lead to confusing results.
473
464
474
465
[testing-miri] : CONTRIBUTING.md#testing-the-miri-driver
475
466
0 commit comments