File tree 1 file changed +2
-10
lines changed
src/librustc_typeck/check
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -541,11 +541,7 @@ fn visit_expr(rcx: &mut Rcx, expr: &ast::Expr) {
541
541
}
542
542
Err ( ..) => {
543
543
let tcx = rcx. fcx . tcx ( ) ;
544
- if tcx. sess . has_errors ( ) {
545
- // cannot run dropck; okay b/c in error state anyway.
546
- } else {
547
- tcx. sess . delay_span_bug ( expr. span , "cat_expr_unadjusted Errd" ) ;
548
- }
544
+ tcx. sess . delay_span_bug ( expr. span , "cat_expr_unadjusted Errd" ) ;
549
545
}
550
546
}
551
547
}
@@ -562,11 +558,7 @@ fn visit_expr(rcx: &mut Rcx, expr: &ast::Expr) {
562
558
}
563
559
Err ( ..) => {
564
560
let tcx = rcx. fcx . tcx ( ) ;
565
- if tcx. sess . has_errors ( ) {
566
- // cannot run dropck; okay b/c in error state anyway.
567
- } else {
568
- tcx. sess . delay_span_bug ( expr. span , "cat_expr Errd" ) ;
569
- }
561
+ tcx. sess . delay_span_bug ( expr. span , "cat_expr Errd" ) ;
570
562
}
571
563
}
572
564
You can’t perform that action at this time.
0 commit comments