summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-11-27 15:20:26 +0100
committerRalf Jung <post@ralfj.de>2022-11-27 15:20:26 +0100
commit60d5d65a4d7931ffa022453a433f433d395afdb9 (patch)
treee8d4b099352a94a44d47c343ec9f4ab14c01658d /compiler/rustc_const_eval/src/interpret
parentdf04d28163cc42e2c5b1072abe68460f904e42be (diff)
downloadrust-60d5d65a4d7931ffa022453a433f433d395afdb9.tar.gz
rust-60d5d65a4d7931ffa022453a433f433d395afdb9.zip
interpret: get rid of run() function
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
-rw-r--r--compiler/rustc_const_eval/src/interpret/step.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/step.rs b/compiler/rustc_const_eval/src/interpret/step.rs
index 73f8bf4362e..60578246eed 100644
--- a/compiler/rustc_const_eval/src/interpret/step.rs
+++ b/compiler/rustc_const_eval/src/interpret/step.rs
@@ -32,11 +32,6 @@ fn binop_right_homogeneous(op: mir::BinOp) -> bool {
 }
 
 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.
     ///
     /// This is used by [priroda](https://github.com/oli-obk/priroda)