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:
161161 the program has access to host resources such as environment variables and
162162 randomness (and, eventually, file systems and more).
163163* ` -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.
165165* ` -Zmir-opt-level ` controls how many MIR optimizations are performed. Miri
166166 overrides the default to be ` 0 ` ; be advised that using any higher level can
167167 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<'_> {
2828 let config = miri:: MiriConfig {
2929 validate : true ,
3030 communicate : false ,
31+ excluded_env_vars : vec ! [ ] ,
3132 args : vec ! [ ] ,
3233 seed : None ,
3334 } ;
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
7070 let config = MiriConfig {
7171 validate : true ,
7272 communicate : false ,
73+ excluded_env_vars : vec ! [ ] ,
7374 args : vec ! [ ] ,
7475 seed : None
7576 } ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ pub struct MiriConfig {
2424 pub communicate : bool ,
2525 /// Environment variables that should always be isolated from the host.
2626 pub excluded_env_vars : Vec < String > ,
27+ /// Command-line arguments passed to the interpreted program.
2728 pub args : Vec < String > ,
2829 /// The seed to use when non-determinism or randomness are required (e.g. ptr-to-int cast, `getrandom()`).
2930 pub seed : Option < u64 > ,
You can’t perform that action at this time.
0 commit comments