Skip to content

Commit

Permalink
Remove early error abort
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Jul 2, 2018
1 parent 0195714 commit 90eee7d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/librustc_driver/driver.rs
Expand Up @@ -1211,7 +1211,6 @@ where
.set(derive_registrar::find(&hir_map));

time(sess, "loop checking", || loops::check_crate(sess, &hir_map));
sess.abort_if_errors();

let mut local_providers = ty::query::Providers::default();
default_provide(&mut local_providers);
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issue-51714.rs
Expand Up @@ -20,4 +20,5 @@ fn main() {

[(); return while let Some(n) = Some(0) {}];
//~^ ERROR return statement outside of function body
//~^^ ERROR irrefutable while-let pattern
}
11 changes: 9 additions & 2 deletions src/test/ui/issue-51714.stderr
Expand Up @@ -22,6 +22,13 @@ error[E0572]: return statement outside of function body
LL | [(); return while let Some(n) = Some(0) {}];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 4 previous errors
error[E0165]: irrefutable while-let pattern
--> $DIR/issue-51714.rs:21:27
|
LL | [(); return while let Some(n) = Some(0) {}];
| ^^^^^^^ irrefutable pattern

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0572`.
Some errors occurred: E0165, E0572.
For more information about an error, try `rustc --explain E0165`.

0 comments on commit 90eee7d

Please sign in to comment.