相关疑难解决方法(0)

什么是crate属性,我在哪里添加它?

为了了解Rust的工作原理,我决定查看一个名为Iota的基于终端的文本编辑器.我克隆了存储库并且cargo build只是被告知:

error: *if let* syntax is experimental

help: add #![feature(if_let)] to the crate attributes to enable
Run Code Online (Sandbox Code Playgroud)

我应该在哪里添加#![feature(if_let)]到箱子属性?

rust rust-cargo

57
推荐指数
1
解决办法
1万
查看次数

错误[E0554]:稳定版本频道上不能使用#![功能]无法使用货物安装赛车

我正在尝试使用货物安装赛车,所以我cargo install racer在终端执行了命令,结果导致错误:

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 …
Run Code Online (Sandbox Code Playgroud)

rust rust-cargo

22
推荐指数
4
解决办法
4886
查看次数

什么是稳定过程?

什么是稳定过程?阅读发行说明我看到了很多不同的标准库API甚至语言功能(例如下划线生命周期).API如何变得稳定?

rust

8
推荐指数
1
解决办法
235
查看次数

标签 统计

rust ×3

rust-cargo ×2