cargo install racerでインストールに失敗する場合の対応


$ cargo install racer
Updating index
Installing racer v2.1.25
Compiling libc v0.2.62
Compiling arrayvec v0.4.11
Compiling autocfg v0.1.6
Compiling semver-parser v0.7.0
Compiling rand_core v0.4.2
Compiling nodrop v0.1.13
Compiling cfg-if v0.1.9
Compiling proc-macro2 v0.4.30
Compiling memoffset v0.2.1
Compiling lazy_static v1.4.0
Compiling scopeguard v0.3.3
Compiling stable_deref_trait v1.1.1
Compiling byteorder v1.3.2
Compiling rustc-rayon-core v0.2.0
Compiling proc-macro2 v1.0.2
Compiling unicode-xid v0.1.0
Compiling log v0.4.8
Compiling unicode-xid v0.2.0
Compiling rustc-rayon v0.2.0
Compiling smallvec v0.6.10
Compiling syn v0.15.44
error[E0554]: #![feature] may not be used on the stable release channel
--> /home/user/.cargo/registry/src/
33 | #![cfg_attr(feature = "union", feature(untagged_unions))]
| ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel
--> /home/user/.cargo/registry/src/
35 | #![cfg_attr(feature = "may_dangle", feature(dropck_eyepatch))]
| ^^^^^^^^^^^^^^^^^^^^^^^^

Compiling indexmap v1.1.0
error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0554.
error: Could not compile smallvec.
warning: build failed, waiting for other jobs to finish...
error: failed to compile racer v2.1.25, intermediate artifacts can be found at /tmp/cargo-install2bfRx7

Caused by:
build failed


rustup install nightly && cargo +nightly install racer



メールアドレスが公開されることはありません。 * が付いている欄は必須項目です