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
Methods on generated flags types not being detected as const #337
Comments
@molpopgen Did you ever get to the bottom of this? Would it be possible to share your version of |
No, I haven't solved it. I put off an upgrade until there's another reason to bump the minor version. (The crate in question is pre-1.0 still).
|
Hmm, this looks like it could be a If I rebuild using They do appear to be |
Very interesting. I'll try to confirm this myself later today. The possibility of |
I confirmed this on my end -- now only the removal of |
Thanks @molpopgen! Yeh, it seems like there have been a few issues specifically around consts that have been getting ironed out with I'll go ahead and close this one, but please do open fresh issues for anything else you encounter! |
The very strange thing is that docs.rs does indeed show those as const. But my local build of the docs shows them as not const:
EDIT: I should have been more clear: docs.rs shows these fns as const in the bitflags 2.0.x docs. Building my own docs for my crate locally shows that they are not const with 2.x. But the docs for my crate on docs.rs are const using bitflags 1.3.x, and that is what is triggering semver-checks to fail.
Originally posted by @molpopgen in #310 (comment)
The text was updated successfully, but these errors were encountered: