Rustdoc json: Associated constants in impl have wrong representation #81340
Labels
A-rustdoc-json
Area: Rustdoc JSON backend
C-bug
Category: This is a bug.
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
This affects rustdoc json output
I expected to see this happen: The constant in the first impl is printed with
ItemEnum::Constant
, the type and constant declaration inEasyToImpl
withItemEnum::{AssocTypeItem, AssocConstItem}
, and the corresponding type definition in the second impl withItemEnum::{Typedef, Constant}
.Instead, this happened: The constant definitions in both impls are the odd one out. They uses the
ItemEnum::AssocConstItem
form instead and their definitions are in thedefault
attribute.The raw json produced
Debug print of the item kinds in the impls
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: