mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
interpret: get rid of run() function
This commit is contained in:
parent
df04d28163
commit
60d5d65a4d
@ -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…
Reference in New Issue
Block a user