diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-10-15 10:15:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-15 10:15:20 -0700 |
| commit | 96ab4a89ee19a8a6db799c8590b52d1bc4fd6c2e (patch) | |
| tree | b75a9b248f81aa2883ec4a4cae526199e6183421 /src | |
| parent | 8e42f01f43371c3305af6897e872d51f950d571b (diff) | |
| parent | 8a228fd7b6521bff7e2913c30f4ca04e9863f470 (diff) | |
| download | rust-96ab4a89ee19a8a6db799c8590b52d1bc4fd6c2e.tar.gz rust-96ab4a89ee19a8a6db799c8590b52d1bc4fd6c2e.zip | |
Rollup merge of #55062 - bjorn3:ecx-step-public, r=oli-obk
Make EvalContext::step public again This is needed for priroda Fixes #55061
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/interpret/step.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/step.rs b/src/librustc_mir/interpret/step.rs index d5e87154480..d15867eacdd 100644 --- a/src/librustc_mir/interpret/step.rs +++ b/src/librustc_mir/interpret/step.rs @@ -52,7 +52,9 @@ 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> { + /// + /// 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); } |
