summary refs log tree commit diff
path: root/src/librustc_interface
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-04-23 09:38:34 +0000
committerbors <bors@rust-lang.org>2019-04-23 09:38:34 +0000
commit31f5d69ba4f4d78740190a08ea097b41b00d96cb (patch)
treebc4730f0e3bb9ead3ee01e9d11975b1692314bde /src/librustc_interface
parent0f11354a9c1bf0c5ac250c7fa2bafc289a662f42 (diff)
parent87ef96d3946ed4add766c0a2cd72d8443e92e4a0 (diff)
downloadrust-31f5d69ba4f4d78740190a08ea097b41b00d96cb.tar.gz
rust-31f5d69ba4f4d78740190a08ea097b41b00d96cb.zip
Auto merge of #60125 - estebank:continue-evaluating, r=oli-obk
Don't stop evaluating due to errors before borrow checking

r? @oli-obk

Fix #60005. Follow up to #59903. Blocked on #53708, fixing the ICE in `src/test/ui/consts/match_ice.rs`.
Diffstat (limited to 'src/librustc_interface')
-rw-r--r--src/librustc_interface/passes.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/librustc_interface/passes.rs b/src/librustc_interface/passes.rs
index fddf706cc8b..f8b1271b8b5 100644
--- a/src/librustc_interface/passes.rs
+++ b/src/librustc_interface/passes.rs
@@ -936,13 +936,6 @@ fn analysis<'tcx>(
         });
     });
 
-    // Abort so we don't try to construct MIR with liveness errors.
-    // We also won't want to continue with errors from rvalue promotion
-    // We only do so if the only error found so far *isn't* a missing `fn main()`
-    if !(entry_point.is_none() && sess.err_count() == 1) {
-        tcx.sess.abort_if_errors();
-    }
-
     time(sess, "borrow checking", || {
         if tcx.use_ast_borrowck() {
             borrowck::check_crate(tcx);