1
Fork 0
rust/compiler/rustc_middle/src
bors 8fe989dd76 Auto merge of #81611 - cjgillot:meowner, r=estebank
Only store a LocalDefId in some HIR nodes

Some HIR nodes are guaranteed to be HIR owners: Item, TraitItem, ImplItem, ForeignItem and MacroDef.
As a consequence, we do not need to store the `HirId`'s `local_id`, and we can directly store a `LocalDefId`.

This allows to avoid a bit of the dance with `tcx.hir().local_def_id` and `tcx.hir().local_def_id_to_hir_id` mappings.
2021-02-16 22:14:32 +00:00
..
dep_graph Edit rustc_middle::dep_graph module documentation 2021-01-22 15:15:05 -08:00
hir Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
ich Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
infer Move a few more types to rustc_type_ir 2021-01-18 21:06:12 +01:00
middle Enforce that query results implement Debug 2021-01-16 17:53:02 -05:00
mir Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
query Trait impls are Items, therefore HIR owners. 2021-02-15 19:36:13 +01:00
traits Rollup merge of #81503 - henryboisdequin:fix-const-fn-arr-err-msg, r=estebank 2021-02-15 16:06:47 +01:00
ty Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
util Make panic/assert calls in rustc compatible with Rust 2021. 2021-02-03 22:42:53 +01:00
arena.rs Combination of commits 2020-12-03 09:50:10 -08:00
lib.rs docs: Fix outdated crate reference 2020-12-19 23:32:51 -08:00
lint.rs introduce future-compatibility warning for forbidden lint groups 2021-02-02 18:21:37 -05:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00