mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
Remove early error abort
This commit is contained in:
@@ -1211,7 +1211,6 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(
|
||||
.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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user