rust/compiler/rustc_ast_lowering/src
bors d3c9082a44 Auto merge of #120006 - cjgillot:no-hir-owner, r=wesleywiser
Get rid of the hir_owner query.

This query was meant as a firewall between `hir_owner_nodes` which is supposed to change often, and the queries that only depend on the item signature. That firewall was inefficient, leaking the contents of the HIR body through `HirId`s.

`hir_owner` incurs a significant cost, as we need to hash HIR twice in multiple modes. This PR proposes to remove it, and simplify the hashing scheme.

For the future, `def_kind`, `def_span`... are much more efficient for incremental decoupling, and should be preferred.
2024-01-19 02:36:13 +00:00
..
asm.rs Add check for ui_testing via promoting parameters from ParseSess to Session 2024-01-13 12:11:13 -05:00
block.rs rustc_ast_lowering: remove ref patterns 2022-11-22 18:49:29 +00:00
delegation.rs Delegation implementation: step 1 2024-01-12 14:11:16 +03:00
errors.rs Async closures will move params into the future always 2024-01-16 17:12:10 +00:00
expr.rs Async closures will move params into the future always 2024-01-16 17:12:10 +00:00
format.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
index.rs Replace some instances of FxHashMap/FxHashSet with stable alternatives (mostly in rustc_hir and rustc_ast_lowering) 2023-12-18 21:03:32 +01:00
item.rs Async closures will move params into the future always 2024-01-16 17:12:10 +00:00
lib.rs Simplify BodyId hashing. 2024-01-16 23:52:30 +00:00
lifetime_collector.rs Reduce exposure of some things. 2023-11-28 14:32:40 +11:00
pat.rs Add PatKind::Err 2024-01-17 03:14:16 +01:00
path.rs Introduce const Trait (always-const trait bounds) 2023-12-27 12:51:32 +01:00