Skip to content

Commit c32cf25

Browse files
committed
Rename read_local_of_frame to access_local
1 parent f46e3ba commit c32cf25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/interpret/operand.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
572572
}
573573

574574
/// This is used by [priroda](https://github.com/oli-obk/priroda) to get an OpTy from a local
575-
pub fn read_local_of_frame(
575+
pub fn access_local(
576576
&self,
577577
frame: &super::Frame<'mir, 'tcx, M::PointerTag>,
578578
local: mir::Local,
@@ -595,7 +595,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
595595
use rustc::mir::Place::*;
596596
let op = match *mir_place {
597597
Local(mir::RETURN_PLACE) => return err!(ReadFromReturnPointer),
598-
Local(local) => self.read_local_of_frame(self.frame(), local, layout)?,
598+
Local(local) => self.access_local(self.frame(), local, layout)?,
599599

600600
Projection(ref proj) => {
601601
let op = self.eval_place_to_op(&proj.base, None)?;

0 commit comments

Comments
 (0)