@@ -42,7 +42,7 @@ pub fn mk_borrowck_eval_cx<'a, 'mir, 'tcx>(
4242) -> EvalResult < ' tcx , CompileTimeEvalContext < ' a , ' mir , ' tcx > > {
4343 debug ! ( "mk_borrowck_eval_cx: {:?}" , instance) ;
4444 let param_env = tcx. param_env ( instance. def_id ( ) ) ;
45- let mut ecx = EvalContext :: new ( tcx. at ( span) , param_env, CompileTimeEvaluator :: new ( ) , ( ) ) ;
45+ let mut ecx = EvalContext :: new ( tcx. at ( span) , param_env, CompileTimeInterpreter :: new ( ) , ( ) ) ;
4646 // insert a stack frame so any queries have the correct substs
4747 ecx. stack . push ( interpret:: Frame {
4848 block : mir:: START_BLOCK ,
@@ -64,7 +64,7 @@ pub fn mk_eval_cx<'a, 'tcx>(
6464) -> EvalResult < ' tcx , CompileTimeEvalContext < ' a , ' tcx , ' tcx > > {
6565 debug ! ( "mk_eval_cx: {:?}, {:?}" , instance, param_env) ;
6666 let span = tcx. def_span ( instance. def_id ( ) ) ;
67- let mut ecx = EvalContext :: new ( tcx. at ( span) , param_env, CompileTimeEvaluator :: new ( ) , ( ) ) ;
67+ let mut ecx = EvalContext :: new ( tcx. at ( span) , param_env, CompileTimeInterpreter :: new ( ) , ( ) ) ;
6868 let mir = ecx. load_mir ( instance. def ) ?;
6969 // insert a stack frame so any queries have the correct substs
7070 ecx. push_stack_frame (
@@ -133,7 +133,7 @@ fn eval_body_and_ecx<'a, 'mir, 'tcx>(
133133 // and try improving it down the road when more information is available
134134 let span = tcx. def_span ( cid. instance . def_id ( ) ) ;
135135 let span = mir. map ( |mir| mir. span ) . unwrap_or ( span) ;
136- let mut ecx = EvalContext :: new ( tcx. at ( span) , param_env, CompileTimeEvaluator :: new ( ) , ( ) ) ;
136+ let mut ecx = EvalContext :: new ( tcx. at ( span) , param_env, CompileTimeInterpreter :: new ( ) , ( ) ) ;
137137 let r = eval_body_using_ecx ( & mut ecx, cid, mir, param_env) ;
138138 ( r, ecx)
139139}
@@ -230,7 +230,7 @@ impl Error for ConstEvalError {
230230}
231231
232232// Extra machine state for CTFE, and the Machine instance
233- pub struct CompileTimeEvaluator < ' a , ' mir , ' tcx : ' a +' mir > {
233+ pub struct CompileTimeInterpreter < ' a , ' mir , ' tcx : ' a +' mir > {
234234 /// When this value is negative, it indicates the number of interpreter
235235 /// steps *until* the loop detector is enabled. When it is positive, it is
236236 /// the number of steps after the detector has been enabled modulo the loop
@@ -241,20 +241,20 @@ pub struct CompileTimeEvaluator<'a, 'mir, 'tcx: 'a+'mir> {
241241 pub ( super ) loop_detector : snapshot:: InfiniteLoopDetector < ' a , ' mir , ' tcx > ,
242242}
243243
244- impl < ' a , ' mir , ' tcx > CompileTimeEvaluator < ' a , ' mir , ' tcx > {
244+ impl < ' a , ' mir , ' tcx > CompileTimeInterpreter < ' a , ' mir , ' tcx > {
245245 fn new ( ) -> Self {
246- CompileTimeEvaluator {
246+ CompileTimeInterpreter {
247247 loop_detector : Default :: default ( ) ,
248248 steps_since_detector_enabled : -snapshot:: STEPS_UNTIL_DETECTOR_ENABLED ,
249249 }
250250 }
251251}
252252
253253type CompileTimeEvalContext < ' a , ' mir , ' tcx > =
254- EvalContext < ' a , ' mir , ' tcx , CompileTimeEvaluator < ' a , ' mir , ' tcx > > ;
254+ EvalContext < ' a , ' mir , ' tcx , CompileTimeInterpreter < ' a , ' mir , ' tcx > > ;
255255
256256impl < ' a , ' mir , ' tcx > interpret:: Machine < ' a , ' mir , ' tcx >
257- for CompileTimeEvaluator < ' a , ' mir , ' tcx >
257+ for CompileTimeInterpreter < ' a , ' mir , ' tcx >
258258{
259259 type MemoryData = ( ) ;
260260 type MemoryKinds = !;
0 commit comments