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)