racer-rust / racer

Rust Code Completion utility
MIT License
3.36k stars 278 forks source link

Build Failing with Cargo Nightly #1103

Open ajohnston1219 opened 4 years ago

ajohnston1219 commented 4 years ago

I am getting the following error when running cargo +nightly install racer:

   Compiling rustc-ap-rustc_data_structures v651.0.0
error[E0599]: no method named `get` found for type `u64` in the current scope
   --> /my/homepath/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-651.0.0/profiling.rs:348:66
    |
348 |             let thread_id = std::thread::current().id().as_u64().get() as u32;
    |                                                                  ^^^ method not found in `u64`

error[E0599]: no method named `get` found for type `u64` in the current scope
   --> /my/homepath/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-651.0.0/profiling.rs:525:62
    |
525 |         let thread_id = std::thread::current().id().as_u64().get() as u32;
    |                                                              ^^^ method not found in `u64`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0599`.
error: could not compile `rustc-ap-rustc_data_structures`.

Here is my current setup:

OS:

NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Rust:

rustup 1.21.1 (7832b2ebe 2019-12-20)
rustc 1.44.0-nightly (f509b26a7 2020-03-18)
cargo 1.44.0-nightly (7019b3ed3 2020-03-17)
Xanewok commented 4 years ago

Nightly build should be fixed with https://github.com/racer-rust/racer/pull/1110

nautilor commented 4 years ago

how about the rustc 1.45.0-nightly? tried with cargo +nightly install racer and cargo +nightly install --version 2.1.34 racer

but i get this: error[E0199]: implementing the trait 'std::iter::Step' is not unsafe

Dicridon commented 4 years ago

@nautilor same issue, 'std::iter::Step' is not unsafe error. I read in another issue that users may try cargo install --git https://github.com/racer-rust/racer.git, but I got 'multiple packages with binaries found: racer, test-crate3'

nautilor commented 4 years ago

@nautilor same issue, 'std::iter::Step' is not unsafe error. I read in another issue that users may try cargo install --git https://github.com/racer-rust/racer.git, but I got 'multiple packages with binaries found: racer, test-crate3'

It's because you need to specify what to install

try

cargo install --git https://github.com/racer-rust/racer.git racer

I already tried but no luck

Dicridon commented 4 years ago

Thanks for your reply, I tried your command and no luck either. humantime ^= 2.0.0 is required, but only 1.3.0, 1.2.0, 1.1.1 are found.

hodlwave commented 4 years ago

@nautilor same issue for me too.

LevenSton commented 4 years ago

same issue, 'std::iter::Step' is not unsafe error....

g-w1 commented 4 years ago

same issue

jrmiller82 commented 4 years ago

not a member of traitstd::iter::Step``

grgi commented 4 years ago

Previous version 2.1.33 builds with recent nightly.

kngwyu commented 4 years ago

I'm sorry for my absence in the thread, but what rust version fails? I confirmed that we can compile 2.1.34 by nightly-2020-05-20.

LevenSton commented 4 years ago

rustc --version rustc 1.45.0-nightly (a74d1862d 2020-05-14)

rustup --version rustup 1.21.1 (7832b2ebe 2019-12-20)

cargo _nightly --version cargo 1.45.0-nightly (cb06cb269 2020-05-08)

------------------ 原始邮件 ------------------ 发件人: "Yuji Kanagawa"<notifications@github.com>; 发送时间: 2020年5月27日(星期三) 下午5:12 收件人: "racer-rust/racer"<racer@noreply.github.com>; 抄送: "慢节奏"<378704244@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [racer-rust/racer] Build Failing with Cargo Nightly (#1103)

I'm sorry for my absence in the thread, but what rust version fails? I confirmed that we can compile 2.1.34 by nightly-2020-05-20.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

FrogLu commented 3 years ago

Same issue.

Here is my current setup:

OS:

Ubuntu 18.04 LTS in WSL2

Rust:

rustc 1.54.0-nightly (35fff69d0 2021-06-06)
rustup 1.24.2 (755e2b07e 2021-05-12)
cargo 1.54.0-nightly (0cecbd673 2021-06-01)
FrogLu commented 3 years ago

I update rust toolchains today, then it works well. Rust toolchains version:

rustc 1.54.0-nightly (e4a603270 2021-06-07)
rustup 1.24.2 (755e2b07e 2021-05-12)
cargo 1.54.0-nightly (0cecbd673 2021-06-01)

Same issue.

Here is my current setup:

OS:

Ubuntu 18.04 LTS in WSL2

Rust:

rustc 1.54.0-nightly (35fff69d0 2021-06-06)
rustup 1.24.2 (755e2b07e 2021-05-12)
cargo 1.54.0-nightly (0cecbd673 2021-06-01)