@@ -450,7 +450,7 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tc
450
450
return_place : Option < PlaceTy < ' tcx , M :: PointerTag > > ,
451
451
return_to_block : StackPopCleanup ,
452
452
) -> EvalResult < ' tcx > {
453
- if self . stack . len ( ) > 1 { // FIXME should be "> 0", printing topmost frame crashes rustc...
453
+ if self . stack . len ( ) > 0 {
454
454
info ! ( "PAUSING({}) {}" , self . cur_frame( ) , self . frame( ) . instance) ;
455
455
}
456
456
:: log_settings:: settings ( ) . indentation += 1 ;
@@ -525,9 +525,7 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tc
525
525
self . frame_mut ( ) . locals = locals;
526
526
}
527
527
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) ;
531
529
532
530
if self . stack . len ( ) > self . tcx . sess . const_eval_stack_frame_limit {
533
531
err ! ( StackFrameLimitReached )
@@ -537,9 +535,7 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tc
537
535
}
538
536
539
537
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) ;
543
539
:: log_settings:: settings ( ) . indentation -= 1 ;
544
540
let frame = self . stack . pop ( ) . expect (
545
541
"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
591
587
StackPopCleanup :: None { .. } => { }
592
588
}
593
589
594
- if self . stack . len ( ) > 1 { // FIXME should be "> 0", printing topmost frame crashes rustc...
590
+ if self . stack . len ( ) > 0 {
595
591
info ! ( "CONTINUING({}) {}" , self . cur_frame( ) , self . frame( ) . instance) ;
596
592
}
597
593
0 commit comments