DepNodeIndex does not uniquely identify anonymous queries #85688
Labels
A-query-system
Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)
A-self-profile
Area: Self-profiling feature of the compiler
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The
DepNodeIndex
for an anonymous query is computed from itsDepKind
and from the list of dependencies, but does not depend on its key. AsDepNode
s are deduplicated before creation, the sameDepNodeIndex
can correspond to multiple anonymous query invocations.Query self-profiling relies on
DepNodeIndex
to identify query invocations.The consequences of this deduplication on self-profiling need further investigation.
cc @michaelwoerister
The text was updated successfully, but these errors were encountered: