racer-rust / racer

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

failed to compile `racer v2.1.32` #1102

Closed guigui64 closed 4 years ago

guigui64 commented 4 years ago

Here is the error I get running cargo +nightly install racer --verbose using the following toolchain:

rustc 1.44.0-nightly (f509b26a7 2020-03-18)

error[E0599]: no method named `get` found for type `u64` in the current scope
   --> /home/guillaume/.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
   --> /home/guillaume/.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`.

Caused by:
  process didn't exit successfully: `rustc --crate-name rustc_ap_rustc_data_structures --edition=2018 /home/guillaume/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-651.0.0/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=2e5f344bce6738fa -C extra-filename=-2e5f344bce6738fa --out-dir /tmp/cargo-install0bgIB4/release/deps -L dependency=/tmp/cargo-install0bgIB4/release/deps --extern bitflags=/tmp/cargo-install0bgIB4/release/deps/libbitflags-c88a3335de1e68ac.rmeta --extern cfg_if=/tmp/cargo-install0bgIB4/release/deps/libcfg_if-79616f6037e374ff.rmeta --extern crossbeam_utils=/tmp/cargo-install0bgIB4/release/deps/libcrossbeam_utils-8d29fe440ddd1053.rmeta --extern ena=/tmp/cargo-install0bgIB4/release/deps/libena-4b3730c1dd2d9d75.rmeta --extern indexmap=/tmp/cargo-install0bgIB4/release/deps/libindexmap-83ad802d322dccac.rmeta --extern jobserver_crate=/tmp/cargo-install0bgIB4/release/deps/libjobserver-87a9f12902d49168.rmeta --extern lazy_static=/tmp/cargo-install0bgIB4/release/deps/liblazy_static-998e5d1115c8a9cd.rmeta --extern log=/tmp/cargo-install0bgIB4/release/deps/liblog-e96f8a4e6075e6ab.rmeta --extern measureme=/tmp/cargo-install0bgIB4/release/deps/libmeasureme-ae53e285d99f136a.rmeta --extern parking_lot=/tmp/cargo-install0bgIB4/release/deps/libparking_lot-0e5bb28aaf7a2908.rmeta --extern graphviz=/tmp/cargo-install0bgIB4/release/deps/librustc_ap_graphviz-68c24271a4829604.rmeta --extern rustc_index=/tmp/cargo-install0bgIB4/release/deps/librustc_ap_rustc_index-71ff20a6edb68f80.rmeta --extern rustc_serialize=/tmp/cargo-install0bgIB4/release/deps/librustc_ap_serialize-39aae9e5a1a29339.rmeta --extern rustc_hash=/tmp/cargo-install0bgIB4/release/deps/librustc_hash-0885410806f1a411.rmeta --extern rayon=/tmp/cargo-install0bgIB4/release/deps/librustc_rayon-1ee29720451d99c3.rmeta --extern rayon_core=/tmp/cargo-install0bgIB4/release/deps/librustc_rayon_core-65fe6ad16644c8dd.rmeta --extern smallvec=/tmp/cargo-install0bgIB4/release/deps/libsmallvec-4011355137543a7e.rmeta --extern stable_deref_trait=/tmp/cargo-install0bgIB4/release/deps/libstable_deref_trait-36fbcbcccd575f48.rmeta --cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `racer v2.1.32`, intermediate artifacts can be found at `/tmp/cargo-install0bgIB4`

Caused by:
  build failed
kngwyu commented 4 years ago

Please see #1101