diff options
Diffstat (limited to 'components/util/lib.rs')
-rw-r--r-- | components/util/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components/util/lib.rs b/components/util/lib.rs index 93cb5de4cc1..d5c97402781 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -15,6 +15,8 @@ #![plugin(heapsize_plugin, plugins, serde_macros)] +#![deny(unsafe_code)] + extern crate alloc; extern crate app_units; #[macro_use] @@ -46,16 +48,23 @@ extern crate uuid; use std::sync::Arc; pub mod cache; +#[allow(unsafe_code)] pub mod debug_utils; pub mod geometry; +#[allow(unsafe_code)] pub mod ipc; pub mod linked_list; #[cfg(feature = "non-geckolib")] +#[allow(unsafe_code)] pub mod non_geckolib; +#[allow(unsafe_code)] pub mod opts; +#[allow(unsafe_code)] pub mod prefs; pub mod print_tree; +#[allow(unsafe_code)] pub mod resource_files; +#[allow(unsafe_code)] pub mod str; pub mod thread; pub mod thread_state; @@ -63,8 +72,10 @@ pub mod threadpool; pub mod tid; pub mod time; pub mod vec; +#[allow(unsafe_code)] pub mod workqueue; +#[allow(unsafe_code)] pub fn breakpoint() { unsafe { ::std::intrinsics::breakpoint() }; } |