<分区>
我正在处理 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
<分区>
我正在处理 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/