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

Build Failing with Cargo Nightly #1103

Open
ajohnston1219 opened this issue Apr 13, 2020 · 14 comments
Open

Build Failing with Cargo Nightly #1103

ajohnston1219 opened this issue Apr 13, 2020 · 14 comments

Comments

@ajohnston1219
Copy link

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
Copy link
Collaborator

Xanewok commented May 21, 2020

Nightly build should be fixed with #1110

@nautilor
Copy link

nautilor commented May 23, 2020

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
Copy link

@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
Copy link

@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
Copy link

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
Copy link

@nautilor same issue for me too.

@LevenSton
Copy link

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

@g-w1
Copy link

g-w1 commented May 26, 2020

same issue

@jrmiller82
Copy link

not a member of trait std::iter::Step``

@grgi
Copy link

grgi commented May 27, 2020

Previous version 2.1.33 builds with recent nightly.

@kngwyu
Copy link
Collaborator

kngwyu commented May 27, 2020

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
Copy link

LevenSton commented May 27, 2020 via email

@FrogLu
Copy link

FrogLu commented Jun 7, 2021

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
Copy link

FrogLu commented Jun 8, 2021

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)

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