]> git.lizzy.rs Git - rust.git/commitdiff
restrict cur_frame visibility
authorRalf Jung <post@ralfj.de>
Sat, 9 Sep 2017 09:37:00 +0000 (11:37 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 9 Sep 2017 09:37:00 +0000 (11:37 +0200)
src/librustc_mir/interpret/memory.rs

index 71bb4b4ecd14e8d6a3f08a08ad6d99a37636fc7a..9a99f50cdfad5e81d8eefdbdb96d585e20a45def 100644 (file)
@@ -268,7 +268,7 @@ pub struct Memory<'a, 'tcx, M: Machine<'tcx>> {
     writes_are_aligned: Cell<bool>,
 
     /// The current stack frame.  Used to check accesses against locks.
-    pub cur_frame: usize,
+    pub(super) cur_frame: usize,
 }
 
 impl<'a, 'tcx, M: Machine<'tcx>> Memory<'a, 'tcx, M> {