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

Installation of racer fails on fresh macOS install #1121

Closed
vyorkin opened this issue Jul 21, 2020 · 3 comments
Closed

Installation of racer fails on fresh macOS install #1121

vyorkin opened this issue Jul 21, 2020 · 3 comments

Comments

@vyorkin
Copy link

vyorkin commented Jul 21, 2020

Steps to reproduce

  1. 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
Copy link
Contributor

Your rust nightly is too old. Try: rustup default nightly-2020-07-21

@svenstaro
Copy link
Contributor

Fixed by #1122. Check it out.

@vyorkin
Copy link
Author

vyorkin commented Jul 21, 2020

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

@vyorkin vyorkin closed this as completed Jul 21, 2020
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