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

Failure to build using current (1.59) nightly #106

Open
jaskij opened this issue Dec 6, 2021 · 4 comments
Open

Failure to build using current (1.59) nightly #106

jaskij opened this issue Dec 6, 2021 · 4 comments

Comments

@jaskij
Copy link

jaskij commented Dec 6, 2021

Rust version:

$ rustup run nightly rustc --version
rustc 1.59.0-nightly (e2116acae 2021-12-05)

Build output):

$ cargo +nightly install papyrus
### many properly compiling packages ellided ###
   Compiling rustc-ap-rustc_span v722.0.0
error[E0635]: unknown feature `thread_local_const_init`
  --> /home/jaskij/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-722.0.0/src/lib.rs:23:12
   |
23 | #![feature(thread_local_const_init)]
   |            ^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `rustc-ap-rustc_span` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `papyrus v0.17.2`, intermediate artifacts can be found at `/tmp/cargo-installDt6oKN`

Caused by:
  build failed

Crates.io link to failing crate and version: https://crates.io/crates/rustc-ap-rustc_span/722.0.0

@AdamJSoftware
Copy link

same issue when compiling racer

error[E0635]: unknown feature `thread_local_const_init`
  --> /home/adam/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-722.0.0/src/lib.rs:23:12
   |
23 | #![feature(thread_local_const_init)]
   |            ^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `rustc-ap-rustc_span` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `racer v2.1.48`, intermediate artifacts can be found at `/tmp/cargo-install8olDbb`

Caused by:
  build failed

@AdamJSoftware
Copy link

Looking at the racer-rust issues it seems that I just needed to use a different version of the nightly compiler. I can confirm this worked for me. Please look at racer-rust/racer#1173 and see if that version of the nightly compiler fixes your issues

@AtlasPilotPuppy
Copy link

It appears that racer is still using an old nightly compiler
this is what worked for me

rustup toolchain add nightly-2021-06-07

cargo +nightly-2021-06-07 install papyrus

@matheusinacio7
Copy link

After trying with the above suggestion from @anantasty I'm getting:

error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/heyset/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.51/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/heyset/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.51/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0635`.
error: failed to compile `papyrus v0.17.2`, intermediate artifacts can be found at `/tmp/cargo-installcI1oxP`

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

4 participants