File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,10 @@ up the sysroot. If you are using `miri` (the Miri driver) directly, see the
195
195
Miri adds its own set of ` -Z ` flags, which are usually set via the ` MIRIFLAGS `
196
196
environment variable:
197
197
198
+ * ` -Zmiri-compare-exchange-weak-failure-rate=<rate> ` changes the failure rate of
199
+ ` compare_exchange_weak ` operations. The default is ` 0.8 ` (so 4 out of 5 weak ops will fail).
200
+ You can change it to any value between ` 0.0 ` and ` 1.0 ` , where ` 1.0 ` means it
201
+ will always fail and ` 0.0 ` means it will never fail.
198
202
* ` -Zmiri-disable-alignment-check ` disables checking pointer alignment, so you
199
203
can focus on other failures, but it means Miri can miss bugs in your program.
200
204
Using this flag is ** unsound** .
@@ -251,10 +255,6 @@ environment variable:
251
255
can recognize false positives by "<untagged >" occurring in the message -- this
252
256
indicates a pointer that was cast from an integer, so Miri was unable to track
253
257
this pointer.
254
- * ` -Zmiri-compare-exchange-weak-failure-rate=<rate> ` changes the failure rate of
255
- ` compare_exchange_weak ` operations. The default is ` 0.8 ` (so 4 out of 5 weak ops will fail).
256
- You can change it to any value between ` 0.0 ` and ` 1.0 ` , where ` 1.0 ` means it
257
- will always fail and ` 0.0 ` means it will never fail.
258
258
259
259
Some native rustc ` -Z ` flags are also very relevant for Miri:
260
260
You can’t perform that action at this time.
0 commit comments