Rollup merge of #104982 - RalfJung:norun, r=oli-obk
interpret: get rid of run() function Miri needs its own loop anyway, so there's not much of a point in trying to share this code.
This commit is contained in:
commit
3aace9a641
2 changed files with 1 additions and 6 deletions
|
@ -66,7 +66,7 @@ fn eval_body_using_ecx<'mir, 'tcx>(
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
// The main interpreter loop.
|
// The main interpreter loop.
|
||||||
ecx.run()?;
|
while ecx.step()? {}
|
||||||
|
|
||||||
// Intern the result
|
// Intern the result
|
||||||
let intern_kind = if cid.promoted.is_some() {
|
let intern_kind = if cid.promoted.is_some() {
|
||||||
|
|
|
@ -32,11 +32,6 @@ fn binop_right_homogeneous(op: mir::BinOp) -> bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
||||||
pub fn run(&mut self) -> InterpResult<'tcx> {
|
|
||||||
while self.step()? {}
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns `true` as long as there are more things to do.
|
/// Returns `true` as long as there are more things to do.
|
||||||
///
|
///
|
||||||
/// This is used by [priroda](https://github.com/oli-obk/priroda)
|
/// This is used by [priroda](https://github.com/oli-obk/priroda)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue