Use a different DefId for the Def::Variant and Def::VariantCtor #59131
Labels
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The enum variant (
Dev::Variant
) and the enum variants constructor (Def::VariantCtor
) share the sameDefId
making it impossible fortcx.describe_def
to resolve aDefId
to aVariantCtor
.This issue originates from the discussion here.
Note:
tcx.describe_def
has not moved away fromNodeId
. It may be best for the fix to wait until it is.CC: #59036
The text was updated successfully, but these errors were encountered: