Rustdoc does not list associated constants for types in the sidebar #89354
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Consider the following struct and trait:
The sidebar generated by rustdoc for the trait is informative, allowing you to quickly jump to the methods and associated constants:

Sadly, the associated constant is completely missing in the sidebar for the struct:

This is particularly painful for types with many members, such as
f32
. It is not immediately obvious which associated constants it has. In my opinion rustdoc should also generate an 'associated constants' section in the sidebar for types, not just for traits.The text was updated successfully, but these errors were encountered: