Skip to content

Fix up missing docs for consts within consts#330

Merged
KodrAus merged 1 commit intobitflags:mainfrom
KodrAus:fix/missing-docs
Apr 3, 2023
Merged

Fix up missing docs for consts within consts#330
KodrAus merged 1 commit intobitflags:mainfrom
KodrAus:fix/missing-docs

Conversation

@KodrAus
Copy link
Member

@KodrAus KodrAus commented Apr 3, 2023

Closes #320

Moves the declaration of associated constants for flags outside of the const _: () { .. } container. This works around a bug in the current stable version of rustdoc where docs for constants within #[doc(hidden)] constants are missed.

@KodrAus KodrAus merged commit 98b85d5 into bitflags:main Apr 3, 2023
@KodrAus KodrAus mentioned this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression in v2: flag constants no longer appear in cargo doc output

1 participant