-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
The enum variant (Dev::Variant
) and the enum variants constructor (Def::VariantCtor
) share the same DefId
making it impossible for tcx.describe_def
to resolve a DefId
to a VariantCtor
.
This issue originates from the discussion here.
Note: tcx.describe_def
has not moved away from NodeId
. It may be best for the fix to wait until it is.
CC: #59036
estebank
Metadata
Metadata
Assignees
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.