Skip to content

Commit 261823e

Browse files
committed
Auto merge of #124430 - RalfJung:miri, r=RalfJung
Miri subtree update r? `@ghost`
2 parents 35194e7 + 3a74fae commit 261823e

File tree

13 files changed

+675
-568
lines changed

13 files changed

+675
-568
lines changed

Diff for: src/tools/miri/rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cb3752d20e0f5d24348062211102a08d46fbecff
1+
6acb9e75ebc936df737381a9d0b7a7bccd6f0b2f

Diff for: src/tools/miri/src/machine.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use rustc_target::spec::abi::Abi;
3131

3232
use crate::{
3333
concurrency::{data_race, weak_memory},
34-
shims::unix::FdTable,
34+
shims::unix,
3535
*,
3636
};
3737

@@ -439,8 +439,7 @@ pub struct MiriMachine<'mir, 'tcx> {
439439
/// Ptr-int-cast module global data.
440440
pub alloc_addresses: alloc_addresses::GlobalState,
441441

442-
/// Environment variables set by `setenv`.
443-
/// Miri does not expose env vars from the host to the emulated program.
442+
/// Environment variables.
444443
pub(crate) env_vars: EnvVars<'tcx>,
445444

446445
/// Return place of the main function.
@@ -465,9 +464,9 @@ pub struct MiriMachine<'mir, 'tcx> {
465464
pub(crate) validate: bool,
466465

467466
/// The table of file descriptors.
468-
pub(crate) fds: shims::unix::FdTable,
467+
pub(crate) fds: unix::FdTable,
469468
/// The table of directory descriptors.
470-
pub(crate) dirs: shims::unix::DirTable,
469+
pub(crate) dirs: unix::DirTable,
471470

472471
/// This machine's monotone clock.
473472
pub(crate) clock: Clock,
@@ -642,7 +641,7 @@ impl<'mir, 'tcx> MiriMachine<'mir, 'tcx> {
642641
tls: TlsData::default(),
643642
isolated_op: config.isolated_op,
644643
validate: config.validate,
645-
fds: FdTable::new(config.mute_stdout_stderr),
644+
fds: unix::FdTable::new(config.mute_stdout_stderr),
646645
dirs: Default::default(),
647646
layouts,
648647
threads: ThreadManager::default(),

0 commit comments

Comments
 (0)