From 902e6e2ee6542ce63932dca78ea27130be5d8948 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 29 Aug 2018 18:50:46 -0400 Subject: Fix warnings. Ref #374 --- build_extra/rust/BUILD.gn | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build_extra/rust') 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") { -- cgit v1.2.3