racer-rust/racer

Racer installation fails on current nightly build (rustc-ap-rustc_data_structures v642.0.0 failure)

xHCF opened this issue · 3 comments

xHCF commented

running the command cargo install racer
default toolchain: nightly-x86_64-unknown-linux-gnu
rustc version: rustc 1.43.0-nightly (58b834344 2020-02-05)
cargo version: cargo 1.42.0-nightly (9d32b7b01 2020-01-26)
rustup version: rustup 1.21.1 (7832b2ebe 2019-12-20)
OS: Linux ... 4.15.0-1058-aws #60-Ubuntu SMP Wed Jan 15 22:35:20 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux (Ubuntu 18.04 on AWS EC2)

produces this error:

   Compiling rustc-ap-rustc_data_structures v642.0.0
error[E0061]: this function takes 0 parameters but 1 parameter was supplied
  --> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-642.0.0/box_region.rs:50:58
   |
50 |         let init = match Pin::new(&mut result.generator).resume(()) {
   |                                                          ^^^^^^ expected 0 parameters

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
  --> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-642.0.0/box_region.rs:77:76
   |
77 |         if let GeneratorState::Complete(_) = Pin::new(&mut self.generator).resume(()) {
   |                                                                            ^^^^^^ expected 0 parameters

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
  --> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-642.0.0/box_region.rs:96:52
   |
96 |         let result = Pin::new(&mut self.generator).resume(());
   |                                                    ^^^^^^ expected 0 parameters

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0061`.
error: failed to compile `racer v2.1.31`, intermediate artifacts can be found at `/tmp/cargo-install200IvG`

Caused by:
  could not compile `rustc-ap-rustc_data_structures`.

To learn more, run the command again with --verbose.

@nvimm
This looks like a problem caused in librustc_data_structures/box_region.rs in rust.
I made a pull request to rust-lang/rust#69119

Now nightly >= 2020-02-10 is required.
Sorry for inconvenience.

👍 Thanks!