about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-19 02:36:13 +0000
committerbors <bors@rust-lang.org>2024-01-19 02:36:13 +0000
commitd3c9082a44f00b22152ebc9c92c129b10ccb7793 (patch)
tree037b46258755d2c15413dd5f662aae079ff42868 /compiler/rustc_interface/src
parent25f8d01fd8bda339612d0c0a8844173a09205f7c (diff)
parentd59968b5f65c8b703f66913181d30d31df113d70 (diff)
downloadrust-d3c9082a44f00b22152ebc9c92c129b10ccb7793.tar.gz
rust-d3c9082a44f00b22152ebc9c92c129b10ccb7793.zip
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.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions