Installation of racer fails on fresh macOS install
vyorkin opened this issue · 3 comments
vyorkin commented
Steps to reproduce
- Install macOS
# install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
rustup toolchain add nightly
rustup default nightly
rustup component add rust-src
cargo install bingrep
cargo install rusty-tags
rustup component add rustfmt-preview --toolchain nightly
cargo +nightly install racer
error
error: `std::intrinsics::transmute` is not yet stable as a const fn
--> /Users/vyorkin/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_ast-669.0.0/ptr.rs:136:17
|
136 | std::mem::transmute(NonNull::<[T; 0]>::dangling() as NonNull<[T]>)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add `#![feature(const_transmute)]` to the crate attributes to enable
error: aborting due to previous error
error: could not compile `rustc-ap-rustc_ast`
svenstaro commented
Your rust nightly is too old. Try: rustup default nightly-2020-07-21
vyorkin commented
Thank you! My suggestion is to update the README.md to mention the nightly-2020-07-21
, because right now it says that it is enough to just rustup toolchain add nightly
and cargo +nightly install racer