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

error[E0658]: use of unstable library feature 'proc_macro_is_available' #8

Closed
Thearas opened this issue Dec 8, 2021 · 1 comment
Closed

Comments

@Thearas
Copy link

Thearas commented Dec 8, 2021

cargo install when-cli error:

error[E0658]: use of unstable library feature 'proc_macro_is_available'
  --> /Users/thearas/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.33/src/detection.rs:28:21
   |
28 |     let available = proc_macro::is_available();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #71436 <https://github.com/rust-lang/rust/issues/71436> for more information
   = help: add `#![feature(proc_macro_is_available)]` to the crate attributes to enable

For more information about this error, try `rustc --explain E0658`.
error: could not compile `proc-macro2` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `when-cli v0.1.0`, intermediate artifacts can be found at `/var/folders/wb/ss6s2j2n1nj5jl5_v_qy2br40000gn/T/cargo-installFv9jfm`

Caused by:
  build failed

Version

rustc 1.57.0-nightly (b69fe5726 2021-09-10)

@mitsuhiko
Copy link
Owner

I cannot explain this. I am assuming something is wrong with your rust installation. The error is also not originating in when-cli but proc-macro2. I found this related issue: dtolnay/proc-macro2#307

Generally nightly is not a compiler you should be using for installing such packages as nightly will regularly regress. Please use a stable rust compiler instead.

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