about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2018-10-20 14:39:23 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2018-10-21 15:49:20 +0200
commitc32cf25689d7b8f2498a875716f855ee5cdcf16c (patch)
tree029a40c2dd6500ed4448289dfdb795b2d40396dd
parentf46e3ba308ffae06a6fdc7f6e2ecd1108519f021 (diff)
downloadrust-c32cf25689d7b8f2498a875716f855ee5cdcf16c.tar.gz
rust-c32cf25689d7b8f2498a875716f855ee5cdcf16c.zip
Rename read_local_of_frame to access_local
-rw-r--r--src/librustc_mir/interpret/operand.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/interpret/operand.rs b/src/librustc_mir/interpret/operand.rs
index 132e3812ed7..744856c805c 100644
--- a/src/librustc_mir/interpret/operand.rs
+++ b/src/librustc_mir/interpret/operand.rs
@@ -572,7 +572,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
     }
 
     /// This is used by [priroda](https://github.com/oli-obk/priroda) to get an OpTy from a local
-    pub fn read_local_of_frame(
+    pub fn access_local(
         &self,
         frame: &super::Frame<'mir, 'tcx, M::PointerTag>,
         local: mir::Local,
@@ -595,7 +595,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
         use rustc::mir::Place::*;
         let op = match *mir_place {
             Local(mir::RETURN_PLACE) => return err!(ReadFromReturnPointer),
-            Local(local) => self.read_local_of_frame(self.frame(), local, layout)?,
+            Local(local) => self.access_local(self.frame(), local, layout)?,
 
             Projection(ref proj) => {
                 let op = self.eval_place_to_op(&proj.base, None)?;