From 446f0f447eb1f915a3edfbfa5f662d055f8c984a Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 9 Feb 2015 17:41:57 -0500 Subject: [PATCH] Allow unused variables, imports, and mutable. --- components/canvas/lib.rs | 2 -- components/compositing/lib.rs | 2 -- components/gfx/lib.rs | 2 -- components/layout/lib.rs | 2 -- components/layout_traits/lib.rs | 2 -- components/msg/lib.rs | 2 -- components/net/lib.rs | 2 -- components/plugins/lib.rs | 2 -- components/script/lib.rs | 2 -- components/script_traits/lib.rs | 2 -- components/servo/lib.rs | 2 -- components/servo/main.rs | 2 -- components/style/lib.rs | 2 -- components/util/lib.rs | 2 -- ports/cef/lib.rs | 1 - ports/glutin/lib.rs | 1 - ports/gonk/src/lib.rs | 3 --- tests/contenttest.rs | 3 --- tests/reftest.rs | 3 --- 19 files changed, 39 deletions(-) diff --git a/components/canvas/lib.rs b/components/canvas/lib.rs index 9e91a2d6bf5..3e8350b8c37 100644 --- a/components/canvas/lib.rs +++ b/components/canvas/lib.rs @@ -2,8 +2,6 @@ * 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(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/compositing/lib.rs b/components/compositing/lib.rs index e7233be450a..206fbf185ca 100644 --- a/components/compositing/lib.rs +++ b/components/compositing/lib.rs @@ -5,8 +5,6 @@ #![feature(box_syntax, plugin)] #![feature(int_uint)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs index 4fd3792413c..6985cb1d6b1 100644 --- a/components/gfx/lib.rs +++ b/components/gfx/lib.rs @@ -4,8 +4,6 @@ #![feature(unsafe_destructor, int_uint, plugin, box_syntax)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/layout/lib.rs b/components/layout/lib.rs index df523fb6915..a3d00e635b0 100644 --- a/components/layout/lib.rs +++ b/components/layout/lib.rs @@ -5,8 +5,6 @@ #![feature(thread_local, unsafe_destructor, box_syntax, plugin, int_uint)] #![deny(unsafe_blocks)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(unrooted_must_root)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs index 2302cef36b8..9acf2c42f06 100644 --- a/components/layout_traits/lib.rs +++ b/components/layout_traits/lib.rs @@ -2,8 +2,6 @@ * 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(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] extern crate gfx; diff --git a/components/msg/lib.rs b/components/msg/lib.rs index ad3b9e6b72f..2567bf9ced0 100644 --- a/components/msg/lib.rs +++ b/components/msg/lib.rs @@ -4,8 +4,6 @@ #![feature(int_uint)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/net/lib.rs b/components/net/lib.rs index a1ea9f95bde..2cc0fdf8ae4 100644 --- a/components/net/lib.rs +++ b/components/net/lib.rs @@ -6,8 +6,6 @@ #![feature(unboxed_closures)] #![feature(box_syntax)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/plugins/lib.rs b/components/plugins/lib.rs index ede81332fab..1121d85d30c 100644 --- a/components/plugins/lib.rs +++ b/components/plugins/lib.rs @@ -14,8 +14,6 @@ #![feature(plugin_registrar, quote, plugin, box_syntax)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/script/lib.rs b/components/script/lib.rs index 91c22329d0d..d5a4c72f9cb 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -5,8 +5,6 @@ #![feature(unsafe_destructor, plugin, box_syntax, int_uint)] #![deny(unsafe_blocks)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(non_snake_case)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 1afcc8912fe..c8468ce4925 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -4,8 +4,6 @@ #![feature(int_uint)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/servo/lib.rs b/components/servo/lib.rs index a1a35adfba5..fb11dde6717 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -4,8 +4,6 @@ #![feature(thread_local)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/servo/main.rs b/components/servo/main.rs index fa508400dd1..1597dc37f76 100644 --- a/components/servo/main.rs +++ b/components/servo/main.rs @@ -2,8 +2,6 @@ * 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(unused_imports)] -#![deny(unused_variables)] #![allow(unstable)] #[cfg(target_os="android")] diff --git a/components/style/lib.rs b/components/style/lib.rs index 527b9ff587f..ef194a39bf7 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -6,8 +6,6 @@ #![feature(int_uint)] #![feature(box_syntax)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/components/util/lib.rs b/components/util/lib.rs index 3736b6a5a09..a1d356a4645 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -7,8 +7,6 @@ #![feature(int_uint)] #![feature(box_syntax)] -#![deny(unused_imports)] -#![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] diff --git a/ports/cef/lib.rs b/ports/cef/lib.rs index 33b7d6e8383..c2a9433ddac 100644 --- a/ports/cef/lib.rs +++ b/ports/cef/lib.rs @@ -5,7 +5,6 @@ #![feature(thread_local, link_args, plugin, box_syntax, int_uint)] #![allow(experimental, non_camel_case_types, unstable)] -#![deny(unused_imports, unused_variables, unused_mut)] #[macro_use] extern crate log; diff --git a/ports/glutin/lib.rs b/ports/glutin/lib.rs index 353b7f8bdf9..445a4471cd8 100644 --- a/ports/glutin/lib.rs +++ b/ports/glutin/lib.rs @@ -5,7 +5,6 @@ //! A simple application that uses glutin to open a window for Servo to display in. #![feature(box_syntax, int_uint)] -#![deny(unused_imports, unused_variables)] #![allow(unstable)] #[cfg(target_os="macos")] diff --git a/ports/gonk/src/lib.rs b/ports/gonk/src/lib.rs index 955296d5877..b65cf9dae86 100644 --- a/ports/gonk/src/lib.rs +++ b/ports/gonk/src/lib.rs @@ -6,9 +6,6 @@ #![feature(box_syntax)] #![feature(int_uint)] -#![deny(unused_imports)] -#![deny(unused_variables)] - #[macro_use] extern crate log; diff --git a/tests/contenttest.rs b/tests/contenttest.rs index 66ad05f72bf..ea08475228c 100644 --- a/tests/contenttest.rs +++ b/tests/contenttest.rs @@ -7,9 +7,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![deny(unused_imports)] -#![deny(unused_variables)] - extern crate getopts; extern crate regex; extern crate test; diff --git a/tests/reftest.rs b/tests/reftest.rs index d1305687076..024605e4814 100644 --- a/tests/reftest.rs +++ b/tests/reftest.rs @@ -7,9 +7,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![deny(unused_imports)] -#![deny(unused_variables)] - extern crate png; extern crate test; extern crate regex;