错误[E0554]:#![feature] 可能无法在稳定发布渠道上使用无法使用货物安装赛车 [英] error[E0554]: #![feature] may not be used on the stable release channel Couldn't install racer using cargo

查看:47
本文介绍了错误[E0554]:#![feature] 可能无法在稳定发布渠道上使用无法使用货物安装赛车的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用cargo安装racer,所以我在终端中执行了命令cargo install Racer,结果出现了错误:

I'm trying to install racer using cargo, so I executed the command cargo install racer in the terminal and it resulted in the error:

error[E0554]: #![feature] may not be used on the stable release channel
--> /home/rajkumar/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-0.1.2/src/lib.rs:47:34
|
47 | #![cfg_attr(feature = "nightly", feature(macro_vis_matcher))]
|                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #![feature] may not be used on the stable release channel
--> /home/rajkumar/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-0.1.2/src/lib.rs:48:34
|
48 | #![cfg_attr(feature = "nightly", feature(allow_internal_unstable))]
|                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

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

Caused by:
Could not compile `scoped-tls`.

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

以下是我的 Rust 详细信息:

Below are my Rust details:

$rustc --version
rustc 1.30.0 (da5f414c2 2018-10-24)

> rustup --version 
rustup 1.14.0 (1e51b07cc 2018-10-04)

> cargo --version 
cargo 1.30.0 (36d96825d 2018-10-24)

以下是我的 opensuse 版本详细信息:

Below is my opensuse version details:

> cat /usr/lib/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20181029"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20181029"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20181029"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

为什么我不能使用cargo安装racer?我错过了什么吗?

Why am I not able to install racer using cargo? Am I missing anything?

推荐答案

如错误消息所述,您无法使用稳定的 Rust 编译该代码.你需要每晚安装 Rust,然后用它来编译程序:

As the error message states, you cannot compile that code with stable Rust. You need to install nightly Rust and then use it to compile the program:

rustup install nightly
cargo +nightly install racer

另见:

这篇关于错误[E0554]:#![feature] 可能无法在稳定发布渠道上使用无法使用货物安装赛车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆