@@ -450,7 +450,7 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tc
450450 return_place : Option < PlaceTy < ' tcx , M :: PointerTag > > ,
451451 return_to_block : StackPopCleanup ,
452452 ) -> EvalResult < ' tcx > {
453- if self . stack . len ( ) > 1 { // FIXME should be "> 0", printing topmost frame crashes rustc...
453+ if self . stack . len ( ) > 0 {
454454 info ! ( "PAUSING({}) {}" , self . cur_frame( ) , self . frame( ) . instance) ;
455455 }
456456 :: log_settings:: settings ( ) . indentation += 1 ;
@@ -525,9 +525,7 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tc
525525 self . frame_mut ( ) . locals = locals;
526526 }
527527
528- if self . stack . len ( ) > 1 { // FIXME no check should be needed, but some instances ICE
529- info ! ( "ENTERING({}) {}" , self . cur_frame( ) , self . frame( ) . instance) ;
530- }
528+ info ! ( "ENTERING({}) {}" , self . cur_frame( ) , self . frame( ) . instance) ;
531529
532530 if self . stack . len ( ) > self . tcx . sess . const_eval_stack_frame_limit {
533531 err ! ( StackFrameLimitReached )
@@ -537,9 +535,7 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tc
537535 }
538536
539537 pub ( super ) fn pop_stack_frame ( & mut self ) -> EvalResult < ' tcx > {
540- if self . stack . len ( ) > 1 { // FIXME no check should be needed, but some instances ICE
541- info ! ( "LEAVING({}) {}" , self . cur_frame( ) , self . frame( ) . instance) ;
542- }
538+ info ! ( "LEAVING({}) {}" , self . cur_frame( ) , self . frame( ) . instance) ;
543539 :: log_settings:: settings ( ) . indentation -= 1 ;
544540 let frame = self . stack . pop ( ) . expect (
545541 "tried to pop a stack frame, but there were none" ,
@@ -591,7 +587,7 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tc
591587 StackPopCleanup :: None { .. } => { }
592588 }
593589
594- if self . stack . len ( ) > 1 { // FIXME should be "> 0", printing topmost frame crashes rustc...
590+ if self . stack . len ( ) > 0 {
595591 info ! ( "CONTINUING({}) {}" , self . cur_frame( ) , self . frame( ) . instance) ;
596592 }
597593
0 commit comments