This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -168,11 +168,15 @@ to `.vscode/settings.json` in your local Miri clone:
168
168
" ./cargo-miri/Cargo.toml"
169
169
],
170
170
"rust-analyzer.checkOnSave.overrideCommand" : [
171
+ " env" ,
172
+ " MIRI_AUTO_OPS=no" ,
171
173
" ./miri" ,
172
174
" check" ,
173
175
" --message-format=json"
174
176
],
175
177
"rust-analyzer.buildScripts.overrideCommand" : [
178
+ " env" ,
179
+ " MIRI_AUTO_OPS=no" ,
176
180
" ./miri" ,
177
181
" check" ,
178
182
" --message-format=json" ,
Original file line number Diff line number Diff line change @@ -393,6 +393,9 @@ Some native rustc `-Z` flags are also very relevant for Miri:
393
393
394
394
Moreover, Miri recognizes some environment variables :
395
395
396
+ * `MIRI_AUTO_OPS` indicates whether the automatic execution of rustfmt, clippy and rustup-toolchain
397
+ should be skipped. If it is set to any value, they are skipped. This is used for avoiding
398
+ infinite recursion in `./miri` and to allow automated IDE actions to avoid the auto ops.
396
399
* `MIRI_LOG`, `MIRI_BACKTRACE` control logging and backtrace printing during
397
400
Miri executions, also [see "Testing the Miri driver" in `CONTRIBUTING.md`][testing-miri].
398
401
* `MIRIFLAGS` (recognized by `cargo miri` and the test suite) defines extra
Original file line number Diff line number Diff line change 53
53
MIRIDIR=$( python3 -c ' import os, sys; print(os.path.dirname(os.path.realpath(sys.argv[1])))' " $0 " )
54
54
55
55
# # Run the auto-things.
56
- if [ -z " $AUTO_OPS " ]; then
57
- export AUTO_OPS =42
56
+ if [ -z " $MIRI_AUTO_OPS " ]; then
57
+ export MIRI_AUTO_OPS =42
58
58
59
59
# Run this first, so that the toolchain doesn't change after
60
60
# other code has run.
You can’t perform that action at this time.
0 commit comments