File tree Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ Several `-Z` flags are relevant for Miri:
161
161
the program has access to host resources such as environment variables and
162
162
randomness (and, eventually, file systems and more).
163
163
* ` -Zmiri-env-exclude=<var> ` keeps the ` var ` environment variable isolated from
164
- the host. It can be used multiple times to exclude several variables.
164
+ the host. Can be used multiple times to exclude several variables.
165
165
* ` -Zmir-opt-level ` controls how many MIR optimizations are performed. Miri
166
166
overrides the default to be ` 0 ` ; be advised that using any higher level can
167
167
make Miri miss bugs in your program because they got optimized away.
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls<'_> {
28
28
let config = miri:: MiriConfig {
29
29
validate : true ,
30
30
communicate : false ,
31
+ excluded_env_vars : vec ! [ ] ,
31
32
args : vec ! [ ] ,
32
33
seed : None ,
33
34
} ;
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
70
70
let config = MiriConfig {
71
71
validate : true ,
72
72
communicate : false ,
73
+ excluded_env_vars : vec ! [ ] ,
73
74
args : vec ! [ ] ,
74
75
seed : None
75
76
} ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ pub struct MiriConfig {
24
24
pub communicate : bool ,
25
25
/// Environment variables that should always be isolated from the host.
26
26
pub excluded_env_vars : Vec < String > ,
27
+ /// Command-line arguments passed to the interpreted program.
27
28
pub args : Vec < String > ,
28
29
/// The seed to use when non-determinism or randomness are required (e.g. ptr-to-int cast, `getrandom()`).
29
30
pub seed : Option < u64 > ,
You can’t perform that action at this time.
0 commit comments