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 rust-lang#155226 - aerooneqq:delegation-hir-crate-items-revert, r=petrochenkov
delegation: revert execution of hir_crate_items before delayed lowering
This PR reverts rust-lang#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 rust-lang#154368 but I am afraid that it would lead to cancer code growing,
- The [memory regression](rust-lang#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 rust-lang#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 rust-lang#154368 as a last resort if nothing else will work.
Re-opens rust-lang#154169.
Fixesrust-lang#155125. Fixesrust-lang#155127. Fixesrust-lang#155128. Fixesrust-lang#155164. Fixesrust-lang#155202.
Part of rust-lang#118212.
r? @petrochenkov
0 commit comments