Skip to content
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

proc-macro2@1.0.59 is broken on latest version of Rust nightly #180

Closed
9oelM opened this issue Jun 30, 2023 · 2 comments
Closed

proc-macro2@1.0.59 is broken on latest version of Rust nightly #180

9oelM opened this issue Jun 30, 2023 · 2 comments

Comments

@9oelM
Copy link

9oelM commented Jun 30, 2023

cargo-udeps does not directly depend on proc-macro2, but it depends on packages that depend on proc-macro2.

cargo-udeps/Cargo.lock

Lines 2010 to 2017 in 4e42942

[[package]]
name = "proc-macro2"
version = "1.0.59"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b"
dependencies = [
"unicode-ident",
]

The problem is that cargo-udeps needs Rust nightly to run, but it cannot run on the latest version of Rust nightly right now. The latest version that can still work, according to the issue in rust-lang, should be nightly-2023-06-27. So this means any user running nightly that is later than nightly-2023-06-27 cannot install cargo-udeps.

The reason it broke is that starting from nightly-2023-06-28, Rust nightly changed the name of a preview feature, and proc-macro2 is referring to that feature that does not exist anymore.

We can indeed confirm that it fails on the latest version of Rust nightly and succeeds on nightly-2023-06-27:

So we need to tell the users to use nightly-2023-06-27 as the latest possible version of Rust for now and bump proc-macro2 to ^1.0.60 somehow in this repo because 1.0.60 is the version that they removed the non-existent feature.

@9oelM
Copy link
Author

9oelM commented Jun 30, 2023

cc @est31

@est31 est31 closed this as completed in f7a4705 Jun 30, 2023
@est31
Copy link
Owner

est31 commented Jun 30, 2023

Thanks for the report! I've done a cargo update to update all the dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants