You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #155226 - aerooneqq:delegation-hir-crate-items-revert, r=petrochenkov
delegation: revert execution of hir_crate_items before delayed lowering
This PR reverts #154368, as after weekend consideration I don't think that it is a correct way of fixing cycles during delayed lowering:
- The number of ICEs were reported, fixing them would require to develop solution from #154368 but I am afraid that it would lead to cancer code growing,
- The [memory regression](#154368 (comment)) for rustdoc was reported, it can be fixed with moving `tcx.force_delayed_owners_lowering` call earlier, but it is already bad that this is call is now required everywhere, before #154368 AST was dropped before `hir_crate_items` automatically and users of `rustc` API did not have to think about it.
I will try to come up with a more robust solution leaving #154368 as a last resort if nothing else will work.
Re-opens #154169.
Fixes#155125. Fixes#155127. Fixes#155128. Fixes#155164. Fixes#155202.
Part of #118212.
r? @petrochenkov
0 commit comments