Deny unsafe code in more crates.

This commit is contained in:
Ms2ger 2016-03-18 14:43:03 +01:00
parent c90a1b9b1c
commit 08083f1c9d
17 changed files with 44 additions and 0 deletions

View file

@ -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() };
}