racer-rust / emacs-racer

Racer support for Emacs
399 stars 48 forks source link

Cargo install fails #107

Closed andrewbanchich closed 5 years ago

andrewbanchich commented 5 years ago

When I run cargo install racer it fails with:

   Compiling scoped-tls v0.1.2
error[E0554]: #![feature] may not be used on the stable release channel
  --> /Users/andrewbanchich/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-0.1.2/src/lib.rs:47:34
   |
47 | #![cfg_attr(feature = "nightly", feature(macro_vis_matcher))]
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel
  --> /Users/andrewbanchich/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-0.1.2/src/lib.rs:48:34
   |
48 | #![cfg_attr(feature = "nightly", feature(allow_internal_unstable))]
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0554`.
error: Could not compile `scoped-tls`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `racer v2.1.7`, intermediate artifacts can be found at `/tmp/cargo-install4k3HR3`

Caused by:
  build failed

I'm new to Rust, but it looks like the scoped-tls crate is using some beta features. Is that correct? How can I get this working on a stable compiler?

kngwyu commented 5 years ago

Now racer doesn't support stable, since rustc's official parser needs nightly feature. Please see README for installing instruction.