mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
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:
parent
c76720d67c
commit
270f0aafed
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
//! Data needed by the layout task.
|
//! Data needed by the layout task.
|
||||||
|
|
||||||
#![allow(unsafe_code)]
|
#![deny(unsafe_code)]
|
||||||
|
|
||||||
use css::matching::{ApplicableDeclarationsCache, StyleSharingCandidateCache};
|
use css::matching::{ApplicableDeclarationsCache, StyleSharingCandidateCache};
|
||||||
|
|
||||||
|
@ -138,6 +138,7 @@ pub struct SharedLayoutContext {
|
||||||
// XXX UNSOUND!!! for stylist
|
// XXX UNSOUND!!! for stylist
|
||||||
// XXX UNSOUND!!! for new_animations_sender
|
// XXX UNSOUND!!! for new_animations_sender
|
||||||
// XXX UNSOUND!!! for canvas_layers_sender
|
// XXX UNSOUND!!! for canvas_layers_sender
|
||||||
|
#[allow(unsafe_code)]
|
||||||
unsafe impl Sync for SharedLayoutContext {}
|
unsafe impl Sync for SharedLayoutContext {}
|
||||||
|
|
||||||
pub struct LayoutContext<'a> {
|
pub struct LayoutContext<'a> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue