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/gfx | |
parent | c90a1b9b1c44dbf3d3f9dde7e99f4fccfe598542 (diff) | |
download | servo-08083f1c9d08de0e19e16efb9e6923612706032c.tar.gz servo-08083f1c9d08de0e19e16efb9e6923612706032c.zip |
Deny unsafe code in more crates.
Diffstat (limited to 'components/gfx')
-rw-r--r-- | components/gfx/lib.rs | 4 | ||||
-rw-r--r-- | components/gfx/paint_context.rs | 1 | ||||
-rw-r--r-- | components/gfx/paint_thread.rs | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs index ccc1f871364..45b164cbe88 100644 --- a/components/gfx/lib.rs +++ b/components/gfx/lib.rs @@ -18,6 +18,8 @@ #![plugin(plugins)] #![plugin(serde_macros)] +#![deny(unsafe_code)] + extern crate alloc; extern crate app_units; extern crate azure; @@ -98,7 +100,9 @@ pub mod font_template; pub mod paint_thread; // Platform-specific implementations. +#[allow(unsafe_code)] pub mod platform; // Text +#[allow(unsafe_code)] pub mod text; diff --git a/components/gfx/paint_context.rs b/components/gfx/paint_context.rs index e020336429d..9fded4e8651 100644 --- a/components/gfx/paint_context.rs +++ b/components/gfx/paint_context.rs @@ -1774,6 +1774,7 @@ trait ScaledFontExtensionMethods { } impl ScaledFontExtensionMethods for ScaledFont { + #[allow(unsafe_code)] fn draw_text(&self, draw_target: &DrawTarget, run: &TextRun, diff --git a/components/gfx/paint_thread.rs b/components/gfx/paint_thread.rs index b427ae70ea3..a0088fe5313 100644 --- a/components/gfx/paint_thread.rs +++ b/components/gfx/paint_thread.rs @@ -450,6 +450,7 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static { }, ConstellationMsg::Failure(failure_msg), c); } + #[allow(unsafe_code)] fn start(&mut self) { debug!("PaintThread: beginning painting loop"); |