Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deny warnings for all crates as default #19573

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -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))]
@@ -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"));
@@ -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;
@@ -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;
@@ -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;
@@ -5,6 +5,7 @@
#![crate_name = "canvas_traits"]
#![crate_type = "rlib"]

#![deny(warnings)]
#![deny(unsafe_code)]

extern crate cssparser;
@@ -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;
@@ -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")]
@@ -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)]
@@ -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;
@@ -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;
@@ -12,6 +12,7 @@

#![allow(non_snake_case)]
#![deny(unsafe_code)]
#![deny(warnings)]

extern crate devtools_traits;
extern crate hyper;
@@ -11,6 +11,7 @@

#![allow(non_snake_case)]
#![deny(unsafe_code)]
#![deny(warnings)]

#[macro_use]
extern crate bitflags;
@@ -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;
@@ -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;
@@ -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;

@@ -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;
@@ -5,6 +5,7 @@
// For SIMD
#![cfg_attr(feature = "unstable", feature(cfg_target_feature))]

#![deny(warnings)]
#![deny(unsafe_code)]

extern crate app_units;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -43,6 +43,7 @@
//! measured as well as the thing it points to. E.g.
//! `<Box<_> as MallocSizeOf>::size_of(field, ops)`.

#![deny(warnings)]
extern crate app_units;
extern crate cssparser;
extern crate euclid;
@@ -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;
@@ -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;
@@ -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]
@@ -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;
@@ -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;
@@ -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))]
@@ -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;
@@ -7,6 +7,7 @@
//! modules won't have to depend on `profile`.

#![deny(unsafe_code)]
#![deny(warnings)]

extern crate ipc_channel;
#[macro_use]
@@ -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
@@ -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;
@@ -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;
@@ -14,6 +14,7 @@
#![feature(string_retain)]

#![deny(unsafe_code)]
#![deny(warnings)]
#![allow(non_snake_case)]

#![doc = "The script crate contains all matters DOM."]
@@ -7,6 +7,7 @@
//! to depend on script.

#![deny(unsafe_code)]
#![deny(warnings)]

extern crate app_units;
extern crate atomic_refcell;
@@ -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)]
@@ -8,6 +8,7 @@

#![deny(missing_docs)]
#![deny(unsafe_code)]
#![deny(warnings)]

extern crate bluetooth_traits;
extern crate canvas_traits;
@@ -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))]

@@ -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;
@@ -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;
@@ -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) => {
@@ -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;
@@ -8,7 +8,7 @@

#![crate_name = "style_traits"]
#![crate_type = "rlib"]

#![deny(warnings)]
#![deny(unsafe_code, missing_docs)]

extern crate app_units;
@@ -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"]
@@ -6,6 +6,7 @@
#![crate_type = "rlib"]

#![deny(unsafe_code)]
#![deny(warnings)]

extern crate base64;
extern crate cookie as cookie_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;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.