mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Silence unused-extern-crates false positives.
Added #[allow(unused_extern_crates)] to silence false positives * bitflags, lazy_static and matches because macro_use * alloc_jemalloc because builtin crate See https://github.com/rust-lang/rust/issues/30849
This commit is contained in:
parent
a7c885706e
commit
b021874ba0
10 changed files with 14 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
#![feature(custom_derive, plugin)]
|
||||
#![plugin(heapsize_plugin, serde_macros)]
|
||||
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
extern crate heapsize;
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
extern crate alloc;
|
||||
extern crate app_units;
|
||||
extern crate azure;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
|
||||
|
@ -49,6 +50,7 @@ extern crate harfbuzz_sys as harfbuzz;
|
|||
extern crate heapsize;
|
||||
extern crate ipc_channel;
|
||||
extern crate layers;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
extern crate libc;
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
extern crate app_units;
|
||||
extern crate azure;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
extern crate canvas_traits;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
extern crate euclid;
|
||||
|
|
|
@ -17,6 +17,7 @@ extern crate heapsize;
|
|||
extern crate hyper;
|
||||
extern crate image as piston_image;
|
||||
extern crate ipc_channel;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
#[macro_use]
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
#[allow(unused_extern_crates)]
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
extern crate alloc_jemalloc;
|
||||
extern crate hbs_pow;
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
extern crate angle;
|
||||
extern crate app_units;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
extern crate canvas;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#![recursion_limit = "500"] // For match_ignore_ascii_case in PropertyDeclaration::parse
|
||||
|
||||
extern crate app_units;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
extern crate core;
|
||||
|
@ -28,10 +29,12 @@ extern crate encoding;
|
|||
extern crate euclid;
|
||||
extern crate fnv;
|
||||
extern crate heapsize;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate matches;
|
||||
extern crate num;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#![deny(unsafe_code)]
|
||||
|
||||
extern crate app_units;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
extern crate deque;
|
||||
|
@ -27,6 +28,7 @@ extern crate heapsize;
|
|||
extern crate ipc_channel;
|
||||
#[cfg(feature = "non-geckolib")]
|
||||
extern crate js;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
extern crate libc;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#[macro_use] extern crate bitflags;
|
||||
#[cfg(target_os = "macos")] extern crate cgl;
|
||||
extern crate compositing;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[cfg(target_os = "android")] extern crate egl;
|
||||
extern crate euclid;
|
||||
extern crate gleam;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue