Skip to content

Commit ff3b29f

Browse files
committed
make memory private; that's what we have memory_mut for
1 parent f5e8830 commit ff3b29f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/eval_context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub struct EvalContext<'a, 'mir, 'tcx: 'a + 'mir, M: Machine<'a, 'mir, 'tcx>> {
4747
pub(crate) param_env: ty::ParamEnv<'tcx>,
4848

4949
/// The virtual memory system.
50-
pub memory: Memory<'a, 'mir, 'tcx, M>,
50+
pub(crate) memory: Memory<'a, 'mir, 'tcx, M>,
5151

5252
/// The virtual call stack.
5353
pub(crate) stack: Vec<Frame<'mir, 'tcx, M::PointerTag>>,

0 commit comments

Comments
 (0)