]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead
authorbors <bors@rust-lang.org>
Thu, 17 Nov 2022 07:42:27 +0000 (07:42 +0000)
committerbors <bors@rust-lang.org>
Thu, 17 Nov 2022 07:42:27 +0000 (07:42 +0000)
Record `LocalDefId` in HIR nodes instead of a side table

This is part of an attempt to remove the `HirId -> LocalDefId` table from HIR.
This attempt is a prerequisite to creation of `LocalDefId` after HIR lowering (https://github.com/rust-lang/rust/pull/96840), by controlling how `def_id` information is accessed.

This first part adds the information to HIR nodes themselves instead of a table.
The second part is https://github.com/rust-lang/rust/pull/103902
The third part will be to make `hir::Visitor::visit_fn` take a `LocalDefId` as last parameter.
The fourth part will be to completely remove the side table.

1  2 
compiler/rustc_ast_lowering/src/expr.rs
compiler/rustc_ast_lowering/src/lib.rs
compiler/rustc_hir_analysis/src/astconv/mod.rs
compiler/rustc_hir_typeck/src/closure.rs
compiler/rustc_lint/src/builtin.rs
compiler/rustc_middle/src/mir/mod.rs
compiler/rustc_mir_build/src/thir/pattern/mod.rs
compiler/rustc_mir_transform/src/lib.rs
compiler/rustc_passes/src/stability.rs
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
src/librustdoc/clean/mod.rs

Simple merge
Simple merge
Simple merge