Closed
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