Completely delay this error checking
This commit is contained in:
parent
c660609190
commit
8f41b74dba
1 changed files with 2 additions and 10 deletions
|
|
@ -541,11 +541,7 @@ fn visit_expr(rcx: &mut Rcx, expr: &ast::Expr) {
|
|||
}
|
||||
Err(..) => {
|
||||
let tcx = rcx.fcx.tcx();
|
||||
if tcx.sess.has_errors() {
|
||||
// cannot run dropck; okay b/c in error state anyway.
|
||||
} else {
|
||||
tcx.sess.delay_span_bug(expr.span, "cat_expr_unadjusted Errd");
|
||||
}
|
||||
tcx.sess.delay_span_bug(expr.span, "cat_expr_unadjusted Errd");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -562,11 +558,7 @@ fn visit_expr(rcx: &mut Rcx, expr: &ast::Expr) {
|
|||
}
|
||||
Err(..) => {
|
||||
let tcx = rcx.fcx.tcx();
|
||||
if tcx.sess.has_errors() {
|
||||
// cannot run dropck; okay b/c in error state anyway.
|
||||
} else {
|
||||
tcx.sess.delay_span_bug(expr.span, "cat_expr Errd");
|
||||
}
|
||||
tcx.sess.delay_span_bug(expr.span, "cat_expr Errd");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue