struct SemanticDirection;
fn main() {}
Run Code Online (Sandbox Code Playgroud)
warning: struct is never used: `SemanticDirection`
--> src/main.rs:1:1
|
1 | struct SemanticDirection;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
Run Code Online (Sandbox Code Playgroud)
我会将这些警告重新发送给任何严肃的事情,但我只是在修补这种语言而这正在驱使我蝙蝠.
我尝试添加#[allow(dead_code)]到我的代码,但这不起作用.
我正在尝试禁用死代码警告.我尝试了以下内容
cargo build -- -A dead_code
Run Code Online (Sandbox Code Playgroud)
➜rla git :(主)✗货物构建 - -A dead_code错误:参数无效.
所以我想知道如何将rustc参数传递给货物?