Reduce the scope of the allowed unsafe code in context.rs.

Since I made unsafe code opt-in in layout, the unsafe code in this module has
been reduced to a single unsafe impl, so there is no reason to allow it in
the entire module.
This commit is contained in:
Ms2ger 2015-07-08 11:28:49 +02:00
parent c76720d67c
commit 270f0aafed

View file

@ -4,7 +4,7 @@
//! Data needed by the layout task.
#![allow(unsafe_code)]
#![deny(unsafe_code)]
use css::matching::{ApplicableDeclarationsCache, StyleSharingCandidateCache};
@ -138,6 +138,7 @@ pub struct SharedLayoutContext {
// XXX UNSOUND!!! for stylist
// XXX UNSOUND!!! for new_animations_sender
// XXX UNSOUND!!! for canvas_layers_sender
#[allow(unsafe_code)]
unsafe impl Sync for SharedLayoutContext {}
pub struct LayoutContext<'a> {