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
195195Miri adds its own set of ` -Z ` flags, which are usually set via the ` MIRIFLAGS `
196196environment variable:
197197
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.
198202* ` -Zmiri-disable-alignment-check ` disables checking pointer alignment, so you
199203 can focus on other failures, but it means Miri can miss bugs in your program.
200204 Using this flag is ** unsound** .
@@ -251,10 +255,6 @@ environment variable:
251255 can recognize false positives by "<untagged >" occurring in the message -- this
252256 indicates a pointer that was cast from an integer, so Miri was unable to track
253257 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.
258258
259259Some native rustc ` -Z ` flags are also very relevant for Miri:
260260
You can’t perform that action at this time.
0 commit comments