Skip to content
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

Hide @_impl implementation detail from the bitflags! rustdoc #63

Closed
dtolnay opened this issue Mar 7, 2017 · 1 comment
Closed

Hide @_impl implementation detail from the bitflags! rustdoc #63

dtolnay opened this issue Mar 7, 2017 · 1 comment

Comments

@dtolnay
Copy link
Contributor

dtolnay commented Mar 7, 2017

The rustdoc currently shows this distracting internal rule:

(@_impl flags $BitFlags:ident: $T:ty {
    $($(#[$Flag_attr:meta])* const $Flag:ident = $value:expr),+
}) => { ... };
@brson
Copy link
Contributor

brson commented Mar 20, 2017

The way to do this is to create a new internal macro just for this case, probably with __ prefix, and mark it #[doc(hidden)].

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

No branches or pull requests

2 participants