mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #6576 - Ms2ger:scope-unsafe-context, r=pcwalton
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. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6576) <!-- Reviewable:end -->
This commit is contained in:
commit
ce81745a8e
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