Skip to content

Commit 97f9fb1

Browse files
committed
change flag name: enable-communication -> disable-isolation
1 parent 631d5fa commit 97f9fb1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ Several `-Z` flags are relevant for Miri:
157157
is enforced by default. This is mostly useful for debugging; it means Miri
158158
will miss bugs in your program. However, this can also help to make Miri run
159159
faster.
160-
* `-Zmiri-enable-communication` enables communication between the host
161-
environment and Miri, i.e., Miri uses the host's random number generator and
162-
all the host environment variables are available during runtime.
160+
* `-Zmiri-disable-isolation` disables host host isolation. As a consequence,
161+
the program has access to host resources such as environment variables and
162+
randomness (and, eventually, file systems and more).
163163
* `-Zmir-opt-level` controls how many MIR optimizations are performed. Miri
164164
overrides the default to be `0`; be advised that using any higher level can
165165
make Miri miss bugs in your program because they got optimized away.

src/bin/miri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ fn main() {
148148
"-Zmiri-disable-validation" => {
149149
validate = false;
150150
},
151-
"-Zmiri-enable-communication" => {
151+
"-Zmiri-disable-isolation" => {
152152
communicate = true;
153153
},
154154
"--" => {

tests/run-pass/communication.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ignore-windows: TODO env var emulation stubbed out on Windows
2-
// compile-flags: -Zmiri-enable-communication
2+
// compile-flags: -Zmiri-disable-isolation
33

44
fn main() {
55
assert_eq!(std::env::var("MIRI_ENV_VAR_TEST"), Ok("0".to_owned()));

0 commit comments

Comments
 (0)