-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
miri isolation configuration using two flags
Instead of using a single flag for both to disable isolation and to configure error behaviour, use a dedicated flag for each. For the former, continue using `-Zmiri-disable-isolation`. For the latter, replaced `-Zmiri-isolated-op` with `-Zmiri-isolation-error` flag to control the error behaviour of miri when op is run in isolation.
- Loading branch information
Showing
8 changed files
with
82 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// compile-flags: -Zmiri-isolation-error=warn-nobacktrace | ||
use std::env; | ||
use std::io::ErrorKind; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
warning: `getcwd` was made to return an error due to isolation | ||
| | ||
= note: run with -Zmiri-isolated-op=warn to get warning with a backtrace | ||
= note: run with -Zmiri-isolated-op=hide to hide warning | ||
= note: run with -Zmiri-isolated-op=allow to disable isolation | ||
= note: run with -Zmiri-isolation-error=warn to get warning with a backtrace | ||
= note: run with -Zmiri-isolation-error=ignore to hide warning | ||
= note: run with -Zmiri-disable-isolation to disable isolation | ||
|
||
warning: `chdir` was made to return an error due to isolation | ||
| | ||
= note: run with -Zmiri-isolated-op=warn to get warning with a backtrace | ||
= note: run with -Zmiri-isolated-op=hide to hide warning | ||
= note: run with -Zmiri-isolated-op=allow to disable isolation | ||
= note: run with -Zmiri-isolation-error=warn to get warning with a backtrace | ||
= note: run with -Zmiri-isolation-error=ignore to hide warning | ||
= note: run with -Zmiri-disable-isolation to disable isolation | ||
|