Code Monkey home page Code Monkey logo

Comments (6)

KodrAus avatar KodrAus commented on June 23, 2024 1

Thanks @molpopgen!

Yeh, it seems like there have been a few issues specifically around consts that have been getting ironed out with rustdoc lately. It looks like they're pretty swiftly resolved though.

I'll go ahead and close this one, but please do open fresh issues for anything else you encounter!

from bitflags.

KodrAus avatar KodrAus commented on June 23, 2024

@molpopgen Did you ever get to the bottom of this? Would it be possible to share your version of rustc you're using to build with?

from bitflags.

molpopgen avatar molpopgen commented on June 23, 2024

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).

❯ rustc --version
rustc 1.68.2 (9eb3afe9e 2023-03-27)

from bitflags.

KodrAus avatar KodrAus commented on June 23, 2024

Hmm, this looks like it could be a rustdoc bug that was fixed at some point? If I upgrade tskit to bitflags 2 and build the docs with rustc 1.70.0-nightly I see the methods appear as const:

Screenshot 2023-04-12 at 5 54 17 pm

If I rebuild using 1.68.2 I don't see them as const:

Screenshot 2023-04-12 at 5 58 02 pm

They do appear to be const though. If I add a const fn that uses them, methods like intersects still work.

from bitflags.

molpopgen avatar molpopgen commented on June 23, 2024

Very interesting. I'll try to confirm this myself later today. The possibility of rustdoc bugs is definitely a weakness for using semver-checks in one's CI :(.

from bitflags.

molpopgen avatar molpopgen commented on June 23, 2024

I confirmed this on my end -- now only the removal of from_bits_unchecked gets flagged. I think we can close this one.

from bitflags.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.