aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/lib.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-03-18 14:43:03 +0100
committerMs2ger <Ms2ger@gmail.com>2016-03-18 14:43:03 +0100
commit08083f1c9d08de0e19e16efb9e6923612706032c (patch)
treec6610962bea427b945ba12ecd3cea62b16b46cd6 /components/util/lib.rs
parentc90a1b9b1c44dbf3d3f9dde7e99f4fccfe598542 (diff)
downloadservo-08083f1c9d08de0e19e16efb9e6923612706032c.tar.gz
servo-08083f1c9d08de0e19e16efb9e6923612706032c.zip
Deny unsafe code in more crates.
Diffstat (limited to 'components/util/lib.rs')
-rw-r--r--components/util/lib.rs11
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() };
}