From 9d3643dd72aad4be88ee6aceb1e152bf44a8efe5 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 14 Oct 2018 11:10:41 +0200 Subject: [PATCH 1/2] Make EvalContext::step public again Fixes #55061 --- src/librustc_mir/interpret/step.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_mir/interpret/step.rs b/src/librustc_mir/interpret/step.rs index d5e8715448025..2f05af7fc2908 100644 --- a/src/librustc_mir/interpret/step.rs +++ b/src/librustc_mir/interpret/step.rs @@ -52,7 +52,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> } /// Returns true as long as there are more things to do. - fn step(&mut self) -> EvalResult<'tcx, bool> { + pub fn step(&mut self) -> EvalResult<'tcx, bool> { if self.stack.is_empty() { return Ok(false); } From 8a228fd7b6521bff7e2913c30f4ca04e9863f470 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 14 Oct 2018 11:50:05 +0200 Subject: [PATCH 2/2] Add comment about step being used by priroda --- src/librustc_mir/interpret/step.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_mir/interpret/step.rs b/src/librustc_mir/interpret/step.rs index 2f05af7fc2908..d15867eacddc6 100644 --- a/src/librustc_mir/interpret/step.rs +++ b/src/librustc_mir/interpret/step.rs @@ -52,6 +52,8 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> } /// Returns true as long as there are more things to do. + /// + /// This is used by [priroda](https://github.com/oli-obk/priroda) pub fn step(&mut self) -> EvalResult<'tcx, bool> { if self.stack.is_empty() { return Ok(false);