Skip to content

Conversation

@nbdd0121
Copy link
Member

Currently the doc for Zeroable and ZeroableOption are filled with the generated impl of tuples and fn pointers. Use the internal "fake_variadics" feature to improve the rendered quality.

This makes use of an internal feature, however this is of minimal risk as it's for documentation only, not activated during normal build, and can be removed at any time. This feature is already used by serde and bevy to improve documentation quality.

@BennoLossin I'd like to know your opinion on this before sending off to the list. The fake_variadics is optional, we can also just use doc(hidden) only and leave only one shown. However, it does look nicer with variadics.

Currently the doc for `Zeroable` and `ZeroableOption` are filled with the
generated impl of tuples and fn pointers. Use the internal
"fake_variadics" feature to improve the rendered quality.

This makes use of an internal feature, however this is of minimal risk as
it's for documentation only, not activated during normal build, and can be
removed at any time. This feature is already used by serde and bevy to
improve documentation quality.

Signed-off-by: Gary Guo <gary@garyguo.net>
@nbdd0121 nbdd0121 requested a review from BennoLossin January 17, 2026 23:09
Copy link
Member

@BennoLossin BennoLossin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this is great! I didn't know this feature existed. Do you know if there is a similar feature for integers? I'm very much in favor of doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants