diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-03-18 14:43:03 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-03-18 14:43:03 +0100 |
commit | 08083f1c9d08de0e19e16efb9e6923612706032c (patch) | |
tree | c6610962bea427b945ba12ecd3cea62b16b46cd6 /components/script_traits/lib.rs | |
parent | c90a1b9b1c44dbf3d3f9dde7e99f4fccfe598542 (diff) | |
download | servo-08083f1c9d08de0e19e16efb9e6923612706032c.tar.gz servo-08083f1c9d08de0e19e16efb9e6923612706032c.zip |
Deny unsafe code in more crates.
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index f0e115664af..9b69525d205 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -9,6 +9,7 @@ #![feature(custom_derive, plugin)] #![plugin(heapsize_plugin, plugins, serde_macros)] #![deny(missing_docs)] +#![deny(unsafe_code)] extern crate app_units; extern crate canvas_traits; @@ -59,6 +60,7 @@ pub use script_msg::{LayoutMsg, ScriptMsg}; /// `from_untrusted_node_address` before they can be used, because we do not trust layout. #[derive(Copy, Clone, Debug)] pub struct UntrustedNodeAddress(pub *const c_void); +#[allow(unsafe_code)] unsafe impl Send for UntrustedNodeAddress {} /// Messages sent to the layout thread from the constellation and/or compositor. |