]> git.lizzy.rs Git - rust.git/commitdiff
make memory private; that's what we have `memory_mut` for
authorRalf Jung <post@ralfj.de>
Fri, 19 Oct 2018 17:39:52 +0000 (19:39 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 28 Oct 2018 10:21:41 +0000 (11:21 +0100)
src/librustc_mir/interpret/eval_context.rs

index b578ec659002c184e067ddf521a85d98bf4a5f58..1e21eff9e7823466ec3073646464c182ef8911cb 100644 (file)
@@ -47,7 +47,7 @@ pub struct EvalContext<'a, 'mir, 'tcx: 'a + 'mir, M: Machine<'a, 'mir, 'tcx>> {
     pub(crate) param_env: ty::ParamEnv<'tcx>,
 
     /// The virtual memory system.
-    pub memory: Memory<'a, 'mir, 'tcx, M>,
+    pub(crate) memory: Memory<'a, 'mir, 'tcx, M>,
 
     /// The virtual call stack.
     pub(crate) stack: Vec<Frame<'mir, 'tcx, M::PointerTag>>,