Remove early error abort

This commit is contained in:
varkor 2018-07-01 21:07:21 +01:00
parent 0195714836
commit 90eee7dff2
3 changed files with 10 additions and 3 deletions

View file

@ -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);

View file

@ -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
}

View file

@ -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
For more information about this error, try `rustc --explain E0572`.
error: aborting due to 5 previous errors
Some errors occurred: E0165, E0572.
For more information about an error, try `rustc --explain E0165`.