]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #89124 - cjgillot:owner-info, r=michaelwoerister
authorbors <bors@rust-lang.org>
Mon, 18 Oct 2021 19:53:05 +0000 (19:53 +0000)
committerbors <bors@rust-lang.org>
Mon, 18 Oct 2021 19:53:05 +0000 (19:53 +0000)
Index and hash HIR as part of lowering

Part of https://github.com/rust-lang/rust/pull/88186
~Based on https://github.com/rust-lang/rust/pull/88880 (see merge commit).~

Once HIR is lowered, it is later indexed by the `index_hir` query and hashed for `crate_hash`. This PR moves those post-processing steps to lowering itself. As a side objective, the HIR crate data structure is refactored as an `IndexVec<LocalDefId, Option<OwnerInfo<'hir>>>` where `OwnerInfo` stores all the relevant information for an HIR owner.

r? `@michaelwoerister`
cc `@petrochenkov`

1  2 
Cargo.lock
compiler/rustc_ast_lowering/src/item.rs
compiler/rustc_ast_lowering/src/lib.rs
compiler/rustc_hir/src/hir.rs
compiler/rustc_hir_pretty/src/lib.rs
compiler/rustc_middle/src/hir/map/mod.rs
compiler/rustc_middle/src/query/mod.rs
compiler/rustc_middle/src/ty/context.rs
compiler/rustc_resolve/src/lib.rs

diff --cc Cargo.lock
Simple merge
Simple merge
Simple merge
Simple merge