Git Product home page Git Product logo

Comments (8)

briansmith avatar briansmith commented on July 20, 2024

In CI we build with 1.61.1 as the MSRV and that build passes. Which version of Rust are you building with? Are our 1.61.1 jobs in CI doing something wrong?

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 20, 2024

mk/cargo.sh test also generates warnings, but warnings are not treated as errors here, which they are in the main build. So maybe the CI run has overlooked the problem?
Specifically, I've seen this warning on 1.71, and having discovered that invalid_reference_casting is newly introduced (they renamed it, what were they thinking?!), wouldn't expect it to work on anything < 1.73.
I tried mk/cargo.sh test with 1.61 to confirm this warning was present in that version (it also generated some additional warnings I haven't seen before).

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 20, 2024

Warnings confirmed in example https://github.com/briansmith/ring/actions/runs/7492345579/job/20400988301

from ring.

briansmith avatar briansmith commented on July 20, 2024

mk/cargo.sh test also generates warnings, but warnings are not treated as errors here, which they are in the main build.

When I do cargo +1.71.0 check I do indeed get a warning, but it doesn't cause the build to fail.

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 20, 2024

Sorry, should have made it clear - it's -D warnings in our application build that's causing builds to fail. We don't really expect warnings from 3rd party crates (or our own code), and ring did not formerly issue any.

from ring.

briansmith avatar briansmith commented on July 20, 2024

If there is a way to detect which rustc version will be used, that doesn't require shelling out to run rustc and which doesn't involve an external build dependency, then I am open to having build.rs add a old_rustc cfg flag, and then having a #![cfg_attr(old_rustc, allow(unknown_lints))] or similar. Unfortunately, I don't see a way to do that.

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 20, 2024

I liked your proposal of removing explicit reference to the lint as it is deny by default. That would resolve this issue.

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 20, 2024

1.78 resolves this issue - so can be closed.

from ring.

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.