• Knusper@feddit.de
    link
    fedilink
    arrow-up
    15
    ·
    1 year ago

    If “Rust reports potentially useful cfg-disabled items in errors” works remotely as well as I’m imagining it, that’s going to be insanely useful.

    It was this very day, that I wasted several minutes wondering how the hell url::Url does not implement the serde-traits, when those were simply behind a feature flag.

    • Anders429@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      This will also hopefully limit the number of issues opened that are resolved with a “you must enable X feature.”