racer: Build Failing with Cargo Nightly
I am getting the following error when running cargo +nightly install racer
:
Compiling rustc-ap-rustc_data_structures v686.0.0
error[E0107]: wrong number of type arguments: expected 2, found 1
--> /Users/tobi/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-686.0.0/src/graph/iterate/mod.rs:256:10
|
256 | ) -> ControlFlow<Self::BreakVal> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 type arguments
error[E0107]: wrong number of type arguments: expected 2, found 1
--> /Users/tobi/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-686.0.0/src/graph/iterate/mod.rs:261:51
|
261 | fn node_settled(&mut self, _node: G::Node) -> ControlFlow<Self::BreakVal> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 type arguments
error[E0107]: wrong number of type arguments: expected 2, found 1
--> /Users/tobi/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-686.0.0/src/graph/iterate/mod.rs:284:10
|
284 | ) -> ControlFlow<Self::BreakVal> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 type arguments
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0107`.
error: could not compile `rustc-ap-rustc_data_structures`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `racer v2.1.40`, intermediate artifacts can be found at `/var/folders/sw/jmc9rg0n17v550p30c7_wqmr0000gp/T/cargo-install8jfGll`
Caused by:
build failed
MacOs:
rustup 1.22.1 (b01adbbc3 2020-07-08)
rustc 1.49.0-nightly (ffa2e7ae8 2020-10-24)
cargo 1.49.0-nightly (dd83ae55c 2020-10-20)
Thanks
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 19
- Comments: 16
If you do
rustup update --force
(this may mean you don’t get all the components you have already installed) you should get a more up-to-datenightly
(say2020-10-31
).That one should build
racer
just fine.This problem seems to be due to
rust-ap-rustc_data_structures
having been released on a newer rust src than what you have available in yourrustup
.stable-x86_64-unknown-linux-gnu unchanged - rustc 1.51.0 (2fd73fabe 2021-03-23) nightly-x86_64-unknown-linux-gnu updated - rustc 1.54.0-nightly (4de757209 2021-05-01) (from rustc 1.53.0-nightly (42816d61e 2021-04-24)) ubuntu 20.04