]> git.lizzy.rs Git - rust.git/commit
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)
commit7c75fe4c8547c276574cacb144919d67fd8ab302
tree402e39583de6ba02374087e2db67f01dc9e52d90
parent9340e5c1b9dee53fd32a18f7bfb54faabfe00b7b
parentdf5c11a069fbee34c3d2cae8b7b9c8e026b63d39
Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead

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.
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