diff options
| author | bors <bors@rust-lang.org> | 2024-02-14 18:32:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-14 18:32:19 +0000 |
| commit | ee9c7c940c07d8b67c9a6b2ec930db70dcd23a46 (patch) | |
| tree | d7a56ee060be2f76363bf3dfa5363b39f9882ec9 /compiler/rustc_hir_analysis/src/lib.rs | |
| parent | 502ce8287bc3c86dca07acc38c5ff9431a6097be (diff) | |
| parent | 25806f8d8052e5dc5f57830c31996769132fc4f8 (diff) | |
| download | rust-ee9c7c940c07d8b67c9a6b2ec930db70dcd23a46.tar.gz rust-ee9c7c940c07d8b67c9a6b2ec930db70dcd23a46.zip | |
Auto merge of #120847 - oli-obk:track_errors9, r=compiler-errors
Continue compilation after check_mod_type_wf errors The ICEs fixed here were probably reachable through const eval gymnastics before, but now they are easily reachable without that, too. The new errors are often bugfixes, where useful errors were missing, because they were reported after the early abort. In other cases sometimes they are just duplication of already emitted errors, which won't be user-visible due to deduplication. fixes https://github.com/rust-lang/rust/issues/120860
Diffstat (limited to 'compiler/rustc_hir_analysis/src/lib.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/lib.rs b/compiler/rustc_hir_analysis/src/lib.rs index 1aaefc5b520..1cd77050217 100644 --- a/compiler/rustc_hir_analysis/src/lib.rs +++ b/compiler/rustc_hir_analysis/src/lib.rs @@ -187,8 +187,10 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorGuaranteed> { } tcx.sess.time("wf_checking", || { - tcx.hir().try_par_for_each_module(|module| tcx.ensure().check_mod_type_wf(module)) - })?; + tcx.hir().par_for_each_module(|module| { + let _ = tcx.ensure().check_mod_type_wf(module); + }) + }); if tcx.features().rustc_attrs { collect::test_opaque_hidden_types(tcx)?; |
