incr.comp.: Refactor in_scope_traits query to take DefId instead of HirId as query-key #44414
Labels
A-incr-comp
Area: Incremental compilation
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
It must be possible for all "input" queries to reconstruct their query-key from their
DepNode
. The easiest way to accomplish this is to make the query-key aDefId
.The
in_scope_traits
query violates this condition at the moment. A simple way to fix this would be to make it a two-level map: The query returns a per-item map that is indexed byItemLocalId
. The query-key would be theHirId::owner
.cc @alexcrichton @nikomatsakis
The text was updated successfully, but these errors were encountered: