diff options
Diffstat (limited to 'build_extra')
| -rw-r--r-- | build_extra/flatbuffers/rust/BUILD.gn | 1 | ||||
| -rw-r--r-- | build_extra/rust/BUILD.gn | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/build_extra/flatbuffers/rust/BUILD.gn b/build_extra/flatbuffers/rust/BUILD.gn index 92e3e6e71..dd4a5c64c 100644 --- a/build_extra/flatbuffers/rust/BUILD.gn +++ b/build_extra/flatbuffers/rust/BUILD.gn @@ -2,4 +2,5 @@ import("//build_extra/rust/rust.gni") rust_crate("flatbuffers") { source_root = "//third_party/flatbuffers/rust/flatbuffers/src/lib.rs" + args = [ "-Aunused_variables" ] # TODO Remove this. } diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index 6cc239fc8..6873195b2 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -69,6 +69,7 @@ rust_crate("cfg_if") { rust_crate("sha1") { source_root = "$registry_github/sha1-0.6.0/src/lib.rs" + args = [ "-Aunused_parens" ] # https://github.com/mitsuhiko/rust-sha1/issues/36 } rust_crate("tempfile") { @@ -259,6 +260,11 @@ rust_crate("iovec") { rust_crate("lazycell") { source_root = "$registry_github/lazycell-0.6.0/src/lib.rs" + args = [ + # TODO Remove these: + "-Aunused_unsafe", + "-Aunused_mut", + ] } rust_crate("net2") { @@ -367,6 +373,11 @@ rust_crate("hyper") { ":tokio_timer", ":want", ] + args = [ + # TODO Remove these. + "-Adeprecated", + "-Aunused_imports", + ] } rust_crate("tokio_core") { |
