通过命令行,我的意思是使用rustc
标志。
与在这些源文件中添加#![allow(unstable)]
行相比,这将是一个方便的选项...我正在建立一大堆。
答案 0 :(得分:4)
rustc -A unstable foo.rs
正在运行rustc --help
有以下参数片段:
-W --warn OPT Set lint warnings
-A --allow OPT Set lint allowed
-D --deny OPT Set lint denied
-F --forbid OPT Set lint forbidden
您可以使用rustc -W help