Skip to content

Commit abcda6d

Browse files
pvdrzRalfJung
andcommitted
Small corrections
Co-Authored-By: Ralf Jung <post@ralfj.de>
1 parent f4a25e5 commit abcda6d

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

benches/helpers/miri_helper.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
};

src/bin/miri-rustc-tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
};

src/eval.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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>,

0 commit comments

Comments
 (0)