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
The enum variant (
Dev::Variant) and the enum variants constructor (Def::VariantCtor) share the sameDefIdmaking it impossible fortcx.describe_defto resolve aDefIdto aVariantCtor.This issue originates from the discussion here.
Note:
tcx.describe_defhas not moved away fromNodeId. It may be best for the fix to wait until it is.CC: #59036