From db6ce463fe3d40dac627378bfbaeaa700da43a5c Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 1 Jun 2017 11:01:55 -0700 Subject: [PATCH] fix some nits --- src/eval_context.rs | 8 +++++--- src/lvalue.rs | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/eval_context.rs b/src/eval_context.rs index c704ab230d58..f364f829f903 100644 --- a/src/eval_context.rs +++ b/src/eval_context.rs @@ -453,7 +453,7 @@ pub fn push_stack_frame( ) -> EvalResult<'tcx> { ::log_settings::settings().indentation += 1; - /// Return the set of locals that have a stroage annotation anywhere + /// Return the set of locals that have a storage annotation anywhere fn collect_storage_annotations<'tcx>(mir: &'tcx mir::Mir<'tcx>) -> HashSet { use rustc::mir::StatementKind::*; @@ -475,10 +475,12 @@ fn collect_storage_annotations<'tcx>(mir: &'tcx mir::Mir<'tcx>) -> HashSet) -> Eva Ok(Value::ByRef(ptr)) } Lvalue::Local { frame, local, field } => { - Ok(self.stack[frame].get_local(local, field.map(|(i, _)| i))?) + self.stack[frame].get_local(local, field.map(|(i, _)| i)) } Lvalue::Global(cid) => { Ok(self.globals.get(&cid).expect("global not cached").value)