File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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) ;
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ pub struct EnvVars {
1313impl 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) ;
You can’t perform that action at this time.
0 commit comments