You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression in v2: flag constants no longer appear in cargo doc output #320
Run cargo doc --open and search for "hello". It doesn't find anything of that name, and if you go to the Flags page it indeed has no documented constants.
If you change Cargo.toml to use bitflags = "1" and re-run cargo doc, the constant is there as expected:
This issue is fixed upstream, but won't make it to a stable release until April 20th so it might be worth us mitigating it here anyways. It should be fairly straightforward. We can split the impl block that defines those constants from the one that implements other methods and move the constants to outside the const _: () { .. } block.
Activity
nicholasbishop commentedon Mar 18, 2023
I think this is due to #282, as demonstrated with this example:
Running
cargo docon that showsA::VALbut notB::VAL.KodrAus commentedon Mar 23, 2023
This issue is fixed upstream, but won't make it to a stable release until April 20th so it might be worth us mitigating it here anyways. It should be fairly straightforward. We can split the
implblock that defines those constants from the one that implements other methods and move the constants to outside theconst _: () { .. }block.nicholasbishop commentedon Apr 3, 2023
Thanks for the fix :)