Ignore deny and warn flags to rustc.
Bug: 293289578
Test: Ran on gdbstub crate
Change-Id: I70186eb78806f36587989fc8a8e46a1d6fe3666b
diff --git a/tools/cargo_embargo/src/cargo/cargo_out.rs b/tools/cargo_embargo/src/cargo/cargo_out.rs
index 77faf43..bd409f1 100644
--- a/tools/cargo_embargo/src/cargo/cargo_out.rs
+++ b/tools/cargo_embargo/src/cargo/cargo_out.rs
@@ -363,8 +363,8 @@
_ if arg.starts_with("--json=") => {}
_ if arg.starts_with("-Aclippy") => {}
_ if arg.starts_with("-Wclippy") => {}
- "-W" => {}
- "-D" => {}
+ _ if arg.starts_with("-D") => {}
+ _ if arg.starts_with("-W") => {}
arg => bail!("unsupported rustc argument: {arg:?}"),
}