]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_const_eval/src/const_eval/eval_queries.rs
interpret: get rid of run() function
[rust.git] / compiler / rustc_const_eval / src / const_eval / eval_queries.rs
index c777a840f3fb661cfd56c25a51b38d6d9c811606..c27790d8887a377a67a59da57daa99ca84f5f9b3 100644 (file)
@@ -66,7 +66,7 @@ fn eval_body_using_ecx<'mir, 'tcx>(
     )?;
 
     // The main interpreter loop.
-    ecx.run()?;
+    while ecx.step()? {}
 
     // Intern the result
     let intern_kind = if cid.promoted.is_some() {