bash - 错误 : the option `Z` is only accepted on the nightly compiler

标签 bash rust

<分区>

我正在处理 Stanford Operating Systems Course cs140e .在其中一个问题中,有一个名为 test.sh 的 bash 文件,用于检查 Rust 程序是否正确编译。测试脚本接受 -v 标志。使用 -v,脚本将为每次失败发出 Rust 编译器的错误输出。

当我运行 ./test.sh -v 时,我收到此消息:

error: the option `Z` is only accepted on the nightly compiler

最佳答案

Rust 有多个编译器,nightly 包含一些更具实验性的功能。按照 Rust-Lang-Nursery GitHub Page 上的建议,我能够从稳定的 Rust 升级到 nightly :

Install nightly toolchain:

$ rustup install nightly

Switch to nightly toolchain as default toolchain:

$ rustup default nightly

关于bash - 错误 : the option `Z` is only accepted on the nightly compiler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48675235/

相关文章:

bash - 处理除第一个参数之外的所有参数(在 bash 脚本中)

bash - 将文件名的一部分分配给 bash 变量?

callback - 如何 : Idiomatic Rust for callbacks with gtk (rust-gnome)

rust - 有没有办法在 futures for_each 流中继续?

rust - 借用“self”问题

Linux:按具有相同值的列合并行

bash - 检查文件中的空行

memory - 为什么结构在创建时共享相同的地址,而在删除时与创建的地址不同

linux - 计算特定目录中的目录数

rust - 为什么异步版本的 TCP 回显服务器使用的内存比同步版本多 50 倍?