diff options
| author | bors <bors@rust-lang.org> | 2023-10-25 17:35:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-25 17:35:01 +0000 |
| commit | cf226e93dcb0e21e2daa7c26aca0c5b46ff1b646 (patch) | |
| tree | e4e685975b8e96e150af566b912eb7d10583d05f /compiler/rustc_hir_analysis/src | |
| parent | 964ff0125b0933699d5e1e796fcbdd72ef7246be (diff) | |
| parent | a7d05a6dfad6c1b2d77b25bdb70235e7e54c12ec (diff) | |
| download | rust-cf226e93dcb0e21e2daa7c26aca0c5b46ff1b646.tar.gz rust-cf226e93dcb0e21e2daa7c26aca0c5b46ff1b646.zip | |
Auto merge of #117172 - matthiaskrgr:rollup-s56bm2f, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #116801 (Add test for 113326) - #117133 (Merge `impl_wf_inference` (`check_mod_impl_wf`) check into coherence checking) - #117136 (Intern `LocalDefId` list from `opaque_types_defined_by` query) - #117150 (Update cargo) - #117158 (Update THIR unused_unsafe lint) - #117160 (Fix typo in test comment) - #117168 (Fix some coroutine sentences that don't make sense anymore.) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/lib.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler/rustc_hir_analysis/src/lib.rs b/compiler/rustc_hir_analysis/src/lib.rs index 0622aa2ee80..f27ce7fa0e0 100644 --- a/compiler/rustc_hir_analysis/src/lib.rs +++ b/compiler/rustc_hir_analysis/src/lib.rs @@ -182,13 +182,10 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorGuaranteed> { } tcx.sess.track_errors(|| { - tcx.sess.time("impl_wf_inference", || { - tcx.hir().for_each_module(|module| tcx.ensure().check_mod_impl_wf(module)) - }); - })?; - - tcx.sess.track_errors(|| { tcx.sess.time("coherence_checking", || { + // Check impls constrain their parameters + tcx.hir().for_each_module(|module| tcx.ensure().check_mod_impl_wf(module)); + for &trait_def_id in tcx.all_local_trait_impls(()).keys() { tcx.ensure().coherent_trait(trait_def_id); } |
