-
Notifications
You must be signed in to change notification settings - Fork 98
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
Newest proc_macro2
version does not work with kani-0.49.0
#3138
Comments
Actually it seems that, even without any cargo update, suddenly various build actions fail: https://github.com/model-checking/kani/actions/runs/8692459550. No idea what changed here. |
We ran into this too: https://github.com/google/zerocopy/actions/runs/8695299265/job/23846059719?pr=1071 |
See this thread for the details: https://users.rust-lang.org/t/cannot-compile-simple-tokio-example/109956/3 But basically our nightly version matches the latest released Rust compiler, which has now stabilized I believe there are three different fixes we can apply:
|
But I'm still with https://users.rust-lang.org/t/cannot-compile-simple-tokio-example/109956/6: what has changed? Kani neither changed its toolchain version nor the cargo dependencies. So what |
The To go around this issue, an user can either ensure their build are locked via Cargo.lock or specify an exact version in their Cargo.toml. Any version previous to the change I just pasted should do the trick. |
Note that the toolchain upgrade will fix this issue as expected. |
@joshlf is this something that is blocking you? |
proc_macro2
does not work with kani-0.49.0
proc_macro2
does not work with kani-0.49.0proc_macro2
version does not work with kani-0.49.0
It is, yeah. We run Kani as part of CI, so it's preventing us from merging PRs (without manual override, which we'd like to avoid if possible). We use the Kani GitHub Action in our CI config rather than invoking I assume that once the Kani GitHub Action can cut a new release with a more recent nightly toolchain pinned, upgrading to that new version would resolve our issue. |
Thanks for letting us know @joshlf. I would expect the
That said, we are considering creating a release with the fix to unblock users without forcing them to create a workaround. |
Backport toolchain upgrade to a branch off `kani-0.49.0` in preparation for a patch release. The upgrade fixes issues seen with newer versions of proc_macro2 (#3138). By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses. --------- Co-authored-by: Michael Tautschnig <tautschn@amazon.com>
Release notes are the following: ### Major Changes * Fix compilation issue with proc_macro2 (v1.0.80+) and Kani v0.49.0 (#3138). ### What's Changed * Implement valid value check for `write_bytes` by @celinval in #3108 * Rust toolchain upgraded to 2024-04-15 by @tautschnig @celinval **Full Changelog**: kani-0.49.0...kani-0.50.0
@joshlf we have now released a new version of Kani which should fix this issue. Please let us know if you are still having trouble. |
This is intended to fix model-checking/kani#3138 (comment)
That appears to work for us, thanks! |
This is intended to fix model-checking/kani#3138 (comment)
Release notes are the following: ### Major Changes * Fix compilation issue with proc_macro2 (v1.0.80+) and Kani v0.49.0 (model-checking#3138). ### What's Changed * Implement valid value check for `write_bytes` by @celinval in model-checking#3108 * Rust toolchain upgraded to 2024-04-15 by @tautschnig @celinval **Full Changelog**: model-checking/kani@kani-0.49.0...kani-0.50.0
Release notes are the following: ### Major Changes * Fix compilation issue with proc_macro2 (v1.0.80+) and Kani v0.49.0 (model-checking#3138). ### What's Changed * Implement valid value check for `write_bytes` by @celinval in model-checking#3108 * Rust toolchain upgraded to 2024-04-15 by @tautschnig @celinval **Full Changelog**: model-checking/kani@kani-0.49.0...kani-0.50.0
See https://github.com/model-checking/kani/actions/runs/8683193890/job/23808816781:
The text was updated successfully, but these errors were encountered: