Skip to content

Commit f9241be

Browse files
committed
fix warning
1 parent 6ef7c08 commit f9241be

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
4040
MemoryExtra::new(StdRng::seed_from_u64(config.seed.unwrap_or(0)), config.validate),
4141
);
4242
// Complete initialization.
43-
EnvVars::init(&mut ecx, config.communicate);
43+
EnvVars::init(&mut ecx);
4444

4545
// Setup first stack-frame
4646
let main_instance = ty::Instance::mono(ecx.tcx.tcx, main_id);

src/shims/env.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ pub struct EnvVars {
1313
impl EnvVars {
1414
pub(crate) fn init<'mir, 'tcx>(
1515
ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>,
16-
communicate: bool,
1716
) {
18-
if communicate {
17+
if ecx.machine.communicate {
1918
for (name, value) in std::env::vars() {
2019
let value = alloc_env_value(value.as_bytes(), ecx.memory_mut());
2120
ecx.machine.env_vars.map.insert(name.into_bytes(), value);

0 commit comments

Comments
 (0)