Skip to content

incr.comp.: Refactor in_scope_traits query to take DefId instead of HirId as query-key #44414

Closed
@michaelwoerister

Description

@michaelwoerister

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 a DefId.

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 by ItemLocalId. The query-key would be the HirId::owner.

cc @alexcrichton @nikomatsakis

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions