-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rustdoc: impl block with only associated constants not collapsible #71822
Comments
As far as I can tell, this is the desired behaviour (not to hide associated impl constant). So unless I'm missing something, there is nothing to fix here? cc @rust-lang/rustdoc |
Why are they not hidden? It felt surprising to me, as they are part of the impl block. Also because if an impl block contains both constants and methods, both the constants and the methods are hidden when the impl block is collapsed (and this I expected). |
For example |
It seems weird to me as well but I wasn't the one enforcing it and I don't remember the reason. Let's wait to hear from @rust-lang/rustdoc first. |
It seems odd to me that they're not treated equivalently. |
…eGomez doc: make impl block collapsible if it has an associated constant Fixes rust-lang#71822.
The first impl block with a constant is not collapsible like the second impl block with a function.
The text was updated successfully, but these errors were encountered: