From ab53c3cbde754752726ae4d48c435179b8838fa4 Mon Sep 17 00:00:00 2001 From: tigercosmos Date: Fri, 15 Dec 2017 20:38:38 +0800 Subject: [PATCH] deny warnings for all crates as default --- components/allocator/lib.rs | 2 ++ components/atoms/lib.rs | 1 + components/bluetooth/lib.rs | 1 + components/bluetooth_traits/lib.rs | 2 +- components/canvas/lib.rs | 1 + components/canvas_traits/lib.rs | 1 + components/compositing/lib.rs | 1 + components/config/lib.rs | 1 + components/constellation/lib.rs | 1 + components/debugger/lib.rs | 1 + components/deny_public_fields/lib.rs | 1 + components/devtools/lib.rs | 1 + components/devtools_traits/lib.rs | 1 + components/dom_struct/lib.rs | 1 + components/domobject_derive/lib.rs | 1 + components/fallible/lib.rs | 1 + components/geometry/lib.rs | 1 + components/gfx/lib.rs | 1 + components/gfx_traits/lib.rs | 1 + components/hashglobe/src/lib.rs | 1 + components/jstraceable_derive/lib.rs | 1 + components/layout/lib.rs | 1 + components/layout_thread/lib.rs | 1 + components/layout_traits/lib.rs | 1 + components/malloc_size_of/lib.rs | 1 + components/malloc_size_of_derive/lib.rs | 1 + components/metrics/lib.rs | 1 + components/msg/lib.rs | 1 + components/net/lib.rs | 1 + components/net_traits/lib.rs | 2 +- components/nonzero/lib.rs | 1 + components/profile/lib.rs | 1 + components/profile_traits/lib.rs | 1 + components/rand/lib.rs | 2 ++ components/range/lib.rs | 1 + components/remutex/lib.rs | 1 + components/script/lib.rs | 1 + components/script_layout_interface/lib.rs | 1 + components/script_plugins/lib.rs | 2 +- components/script_traits/lib.rs | 1 + components/selectors/lib.rs | 1 + components/servo/lib.rs | 1 + components/servo_arc/lib.rs | 1 + components/size_of_test/lib.rs | 1 + components/style_derive/lib.rs | 1 + components/style_traits/lib.rs | 2 +- components/url/lib.rs | 1 + components/webdriver_server/lib.rs | 1 + components/webvr/lib.rs | 1 + components/webvr_traits/lib.rs | 1 + 50 files changed, 52 insertions(+), 4 deletions(-) diff --git a/components/allocator/lib.rs b/components/allocator/lib.rs index 6c248f08055d..4901294ff547 100644 --- a/components/allocator/lib.rs +++ b/components/allocator/lib.rs @@ -2,6 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] + //! Selecting the default global allocator for Servo #![cfg_attr(all(feature = "unstable", windows), feature(alloc_system, allocator_api))] diff --git a/components/atoms/lib.rs b/components/atoms/lib.rs index c1da7167bde1..c2857d75843a 100644 --- a/components/atoms/lib.rs +++ b/components/atoms/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] extern crate string_cache; include!(concat!(env!("OUT_DIR"), "/atom.rs")); diff --git a/components/bluetooth/lib.rs b/components/bluetooth/lib.rs index a68b701d8836..5254c2e0629e 100644 --- a/components/bluetooth/lib.rs +++ b/components/bluetooth/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #[macro_use] extern crate bitflags; extern crate bluetooth_traits; diff --git a/components/bluetooth_traits/lib.rs b/components/bluetooth_traits/lib.rs index 31e644bd863f..da4d7d952a9a 100644 --- a/components/bluetooth_traits/lib.rs +++ b/components/bluetooth_traits/lib.rs @@ -1,7 +1,7 @@ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - +#![deny(warnings)] extern crate ipc_channel; extern crate regex; #[macro_use] extern crate serde; diff --git a/components/canvas/lib.rs b/components/canvas/lib.rs index 809a69237c0c..8e4683fbc838 100644 --- a/components/canvas/lib.rs +++ b/components/canvas/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #![deny(unsafe_code)] extern crate azure; diff --git a/components/canvas_traits/lib.rs b/components/canvas_traits/lib.rs index f05a91f596a9..5f37112fe737 100644 --- a/components/canvas_traits/lib.rs +++ b/components/canvas_traits/lib.rs @@ -5,6 +5,7 @@ #![crate_name = "canvas_traits"] #![crate_type = "rlib"] +#![deny(warnings)] #![deny(unsafe_code)] extern crate cssparser; diff --git a/components/compositing/lib.rs b/components/compositing/lib.rs index e1a870f96950..9d68f5adc360 100644 --- a/components/compositing/lib.rs +++ b/components/compositing/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #![deny(unsafe_code)] extern crate euclid; diff --git a/components/config/lib.rs b/components/config/lib.rs index 55c33e25b025..e006ff1be2c6 100644 --- a/components/config/lib.rs +++ b/components/config/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #![deny(unsafe_code)] #[cfg(target_os = "android")] diff --git a/components/constellation/lib.rs b/components/constellation/lib.rs index 59ef714ef881..5117baa70612 100644 --- a/components/constellation/lib.rs +++ b/components/constellation/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #![deny(unsafe_code)] #![cfg_attr(feature = "unstable", feature(conservative_impl_trait))] #![feature(mpsc_select)] diff --git a/components/debugger/lib.rs b/components/debugger/lib.rs index ec0e5ba0e800..e867a2710a9b 100644 --- a/components/debugger/lib.rs +++ b/components/debugger/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #[macro_use] extern crate log; extern crate ws; diff --git a/components/deny_public_fields/lib.rs b/components/deny_public_fields/lib.rs index e9b8b7938a25..0d975f4d7193 100644 --- a/components/deny_public_fields/lib.rs +++ b/components/deny_public_fields/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] extern crate proc_macro; extern crate syn; extern crate synstructure; diff --git a/components/devtools/lib.rs b/components/devtools/lib.rs index 31a98d7d5a69..1eb51b24ba65 100644 --- a/components/devtools/lib.rs +++ b/components/devtools/lib.rs @@ -12,6 +12,7 @@ #![allow(non_snake_case)] #![deny(unsafe_code)] +#![deny(warnings)] extern crate devtools_traits; extern crate hyper; diff --git a/components/devtools_traits/lib.rs b/components/devtools_traits/lib.rs index fe0f91c7e525..82ba8f679e5d 100644 --- a/components/devtools_traits/lib.rs +++ b/components/devtools_traits/lib.rs @@ -11,6 +11,7 @@ #![allow(non_snake_case)] #![deny(unsafe_code)] +#![deny(warnings)] #[macro_use] extern crate bitflags; diff --git a/components/dom_struct/lib.rs b/components/dom_struct/lib.rs index 41cf4a675274..5e33789300b5 100644 --- a/components/dom_struct/lib.rs +++ b/components/dom_struct/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #![feature(proc_macro)] extern crate proc_macro; diff --git a/components/domobject_derive/lib.rs b/components/domobject_derive/lib.rs index c718b514fc5f..2a4d6f374e94 100644 --- a/components/domobject_derive/lib.rs +++ b/components/domobject_derive/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] extern crate proc_macro; #[macro_use] extern crate quote; extern crate syn; diff --git a/components/fallible/lib.rs b/components/fallible/lib.rs index c220699a7861..a27c1e676151 100644 --- a/components/fallible/lib.rs +++ b/components/fallible/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] extern crate hashglobe; extern crate smallvec; diff --git a/components/geometry/lib.rs b/components/geometry/lib.rs index 61ded7c67d34..d08128d8b38b 100644 --- a/components/geometry/lib.rs +++ b/components/geometry/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] extern crate app_units; extern crate euclid; extern crate malloc_size_of; diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs index 418e8d7f8970..60f7df7d67e8 100644 --- a/components/gfx/lib.rs +++ b/components/gfx/lib.rs @@ -5,6 +5,7 @@ // For SIMD #![cfg_attr(feature = "unstable", feature(cfg_target_feature))] +#![deny(warnings)] #![deny(unsafe_code)] extern crate app_units; diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs index 6f5b380dd431..f052eda8eb77 100644 --- a/components/gfx_traits/lib.rs +++ b/components/gfx_traits/lib.rs @@ -6,6 +6,7 @@ #![crate_type = "rlib"] #![deny(unsafe_code)] +#![deny(warnings)] extern crate malloc_size_of; #[macro_use] extern crate malloc_size_of_derive; diff --git a/components/hashglobe/src/lib.rs b/components/hashglobe/src/lib.rs index 6431d3350310..5e832a4689ba 100644 --- a/components/hashglobe/src/lib.rs +++ b/components/hashglobe/src/lib.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![deny(warnings)] pub mod alloc; pub mod hash_map; pub mod hash_set; diff --git a/components/jstraceable_derive/lib.rs b/components/jstraceable_derive/lib.rs index 66b172d6a1de..0fc4d6309067 100644 --- a/components/jstraceable_derive/lib.rs +++ b/components/jstraceable_derive/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] extern crate proc_macro; #[macro_use] extern crate quote; extern crate syn; diff --git a/components/layout/lib.rs b/components/layout/lib.rs index f5e850c6da18..1d062f75bf1c 100644 --- a/components/layout/lib.rs +++ b/components/layout/lib.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![deny(unsafe_code)] +#![deny(warnings)] extern crate app_units; extern crate atomic_refcell; diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 8401305036fc..d6627491708a 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -5,6 +5,7 @@ //! The layout thread. Performs layout on the DOM, builds display lists and sends them to be //! painted. +#![deny(warnings)] #![feature(mpsc_select)] extern crate app_units; diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs index fe4326045560..9521beb85580 100644 --- a/components/layout_traits/lib.rs +++ b/components/layout_traits/lib.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![deny(unsafe_code)] +#![deny(warnings)] extern crate gfx; extern crate ipc_channel; diff --git a/components/malloc_size_of/lib.rs b/components/malloc_size_of/lib.rs index b366de512f0c..1ca49991fc18 100644 --- a/components/malloc_size_of/lib.rs +++ b/components/malloc_size_of/lib.rs @@ -43,6 +43,7 @@ //! measured as well as the thing it points to. E.g. //! ` as MallocSizeOf>::size_of(field, ops)`. +#![deny(warnings)] extern crate app_units; extern crate cssparser; extern crate euclid; diff --git a/components/malloc_size_of_derive/lib.rs b/components/malloc_size_of_derive/lib.rs index fe279133cbf4..0b73507f1d8b 100644 --- a/components/malloc_size_of_derive/lib.rs +++ b/components/malloc_size_of_derive/lib.rs @@ -10,6 +10,7 @@ //! A crate for deriving the MallocSizeOf trait. +#![deny(warnings)] #[cfg(not(test))] extern crate proc_macro; #[macro_use] extern crate quote; extern crate syn; diff --git a/components/metrics/lib.rs b/components/metrics/lib.rs index cacf057729c1..0c83a1d67528 100644 --- a/components/metrics/lib.rs +++ b/components/metrics/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] extern crate gfx; extern crate gfx_traits; extern crate ipc_channel; diff --git a/components/msg/lib.rs b/components/msg/lib.rs index 6b256d31df49..93179d115d96 100644 --- a/components/msg/lib.rs +++ b/components/msg/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #![deny(unsafe_code)] #[macro_use] diff --git a/components/net/lib.rs b/components/net/lib.rs index 666e7bdb2d56..7a7a1db20017 100644 --- a/components/net/lib.rs +++ b/components/net/lib.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![deny(unsafe_code)] +#![deny(warnings)] extern crate base64; extern crate brotli; diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs index 32e730eede8a..311f4026f77a 100644 --- a/components/net_traits/lib.rs +++ b/components/net_traits/lib.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - +#![deny(warnings)] #![deny(unsafe_code)] extern crate cookie as cookie_rs; diff --git a/components/nonzero/lib.rs b/components/nonzero/lib.rs index b44cf73c7d6e..d22c5c61757a 100644 --- a/components/nonzero/lib.rs +++ b/components/nonzero/lib.rs @@ -5,6 +5,7 @@ //! `NonZero*` types that are either `core::nonzero::NonZero<_>` //! or some stable types with an equivalent API (but no memory layout optimization). +#![deny(warnings)] #![cfg_attr(feature = "unstable", feature(nonzero))] #![cfg_attr(feature = "unstable", feature(const_fn))] #![cfg_attr(feature = "unstable", feature(const_nonzero_new))] diff --git a/components/profile/lib.rs b/components/profile/lib.rs index d01aad61cd05..fdbfc345424c 100644 --- a/components/profile/lib.rs +++ b/components/profile/lib.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![deny(unsafe_code)] +#![deny(warnings)] #[allow(unused_extern_crates)] extern crate heartbeats_simple; diff --git a/components/profile_traits/lib.rs b/components/profile_traits/lib.rs index 5f2683adcdc4..366483d84d2f 100644 --- a/components/profile_traits/lib.rs +++ b/components/profile_traits/lib.rs @@ -7,6 +7,7 @@ //! modules won't have to depend on `profile`. #![deny(unsafe_code)] +#![deny(warnings)] extern crate ipc_channel; #[macro_use] diff --git a/components/rand/lib.rs b/components/rand/lib.rs index c1018c3deaaf..d16d96c20901 100644 --- a/components/rand/lib.rs +++ b/components/rand/lib.rs @@ -2,6 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] + /// A random number generator which shares one instance of an `OsRng`. /// /// A problem with `OsRng`, which is inherited by `StdRng` and so diff --git a/components/range/lib.rs b/components/range/lib.rs index 6088d0069892..d3cb0fb195bc 100644 --- a/components/range/lib.rs +++ b/components/range/lib.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![deny(unsafe_code)] +#![deny(warnings)] extern crate malloc_size_of; #[macro_use] extern crate malloc_size_of_derive; diff --git a/components/remutex/lib.rs b/components/remutex/lib.rs index 5fbbad40bf02..28898454fab7 100644 --- a/components/remutex/lib.rs +++ b/components/remutex/lib.rs @@ -10,6 +10,7 @@ //! It provides the same interface as https://github.com/rust-lang/rust/blob/master/src/libstd/sys/common/remutex.rs //! so if those types are ever exported, we should be able to replace this implemtation. +#![deny(warnings)] extern crate nonzero; #[macro_use] extern crate lazy_static; #[macro_use] extern crate log; diff --git a/components/script/lib.rs b/components/script/lib.rs index 3bae98a1a064..1cfc577f2140 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -14,6 +14,7 @@ #![feature(string_retain)] #![deny(unsafe_code)] +#![deny(warnings)] #![allow(non_snake_case)] #![doc = "The script crate contains all matters DOM."] diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs index 4e17570f92d7..6c18ce8f3f7a 100644 --- a/components/script_layout_interface/lib.rs +++ b/components/script_layout_interface/lib.rs @@ -7,6 +7,7 @@ //! to depend on script. #![deny(unsafe_code)] +#![deny(warnings)] extern crate app_units; extern crate atomic_refcell; diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index 3f256fdf11ce..c642d2fc2757 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -14,7 +14,7 @@ //! Use this for structs that correspond to a DOM type - +#![deny(warnings)] #![deny(unsafe_code)] #![feature(macro_vis_matcher)] #![feature(plugin)] diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 9048f689fb96..6b85c39c345f 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -8,6 +8,7 @@ #![deny(missing_docs)] #![deny(unsafe_code)] +#![deny(warnings)] extern crate bluetooth_traits; extern crate canvas_traits; diff --git a/components/selectors/lib.rs b/components/selectors/lib.rs index c8e7ce175d5e..8b8ae7a24d3f 100644 --- a/components/selectors/lib.rs +++ b/components/selectors/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] // Make |cargo bench| work. #![cfg_attr(feature = "bench", feature(test))] diff --git a/components/servo/lib.rs b/components/servo/lib.rs index 092e441535d7..226694fc2684 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -17,6 +17,7 @@ //! `Servo` is fed events from a generic type that implements the //! `WindowMethods` trait. +#![deny(warnings)] extern crate env_logger; #[cfg(all(not(target_os = "windows"), not(target_os = "ios")))] extern crate gaol; diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs index 0e77abd6e4bd..5a9b903d4e8d 100644 --- a/components/servo_arc/lib.rs +++ b/components/servo_arc/lib.rs @@ -22,6 +22,7 @@ // The semantics of Arc are alread documented in the Rust docs, so we don't // duplicate those here. #![allow(missing_docs)] +#![deny(warnings)] extern crate nodrop; #[cfg(feature = "servo")] extern crate serde; diff --git a/components/size_of_test/lib.rs b/components/size_of_test/lib.rs index fdd2cd62ec9e..f5ef51a1a0e4 100644 --- a/components/size_of_test/lib.rs +++ b/components/size_of_test/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #[macro_export] macro_rules! size_of_test { ($testname: ident, $t: ty, $expected_size: expr) => { diff --git a/components/style_derive/lib.rs b/components/style_derive/lib.rs index cbe33a3d1997..1be4975a2d41 100644 --- a/components/style_derive/lib.rs +++ b/components/style_derive/lib.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![deny(warnings)] #![recursion_limit = "128"] #[macro_use] extern crate darling; diff --git a/components/style_traits/lib.rs b/components/style_traits/lib.rs index e0f1993c5a84..8e86bc1776df 100644 --- a/components/style_traits/lib.rs +++ b/components/style_traits/lib.rs @@ -8,7 +8,7 @@ #![crate_name = "style_traits"] #![crate_type = "rlib"] - +#![deny(warnings)] #![deny(unsafe_code, missing_docs)] extern crate app_units; diff --git a/components/url/lib.rs b/components/url/lib.rs index b7d612733701..563fe6d03d80 100644 --- a/components/url/lib.rs +++ b/components/url/lib.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![deny(unsafe_code)] +#![deny(warnings)] #![crate_name = "servo_url"] #![crate_type = "rlib"] diff --git a/components/webdriver_server/lib.rs b/components/webdriver_server/lib.rs index 0b75dc4669c2..7606a7cd57f9 100644 --- a/components/webdriver_server/lib.rs +++ b/components/webdriver_server/lib.rs @@ -6,6 +6,7 @@ #![crate_type = "rlib"] #![deny(unsafe_code)] +#![deny(warnings)] extern crate base64; extern crate cookie as cookie_rs; diff --git a/components/webvr/lib.rs b/components/webvr/lib.rs index 77bc6e321341..7e3ef5bc44dc 100644 --- a/components/webvr/lib.rs +++ b/components/webvr/lib.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![deny(unsafe_code)] +#![deny(warnings)] extern crate canvas_traits; extern crate euclid; diff --git a/components/webvr_traits/lib.rs b/components/webvr_traits/lib.rs index 9fd8c85074b9..e37dd893881d 100644 --- a/components/webvr_traits/lib.rs +++ b/components/webvr_traits/lib.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![deny(unsafe_code)] +#![deny(warnings)] extern crate ipc_channel; extern crate msg;