Bug 1475691 - Make Servo build. r=me

StrongRuleNode is really Sync.
This commit is contained in:
Emilio Cobos Álvarez 2018-09-18 11:46:23 +02:00
parent 52be7ed562
commit 29ac8f82e5

View File

@ -938,8 +938,6 @@ impl MallocSizeOf for RuleNode {
}
}
// FIXME: use std::ptr::NonNull when Firefox requires Rust 1.25+
#[derive(Clone)]
struct WeakRuleNode {
p: ptr::NonNull<RuleNode>,
@ -952,6 +950,7 @@ pub struct StrongRuleNode {
}
unsafe impl Send for StrongRuleNode {}
unsafe impl Sync for StrongRuleNode {}
#[cfg(feature = "servo")]
malloc_size_of_is_0!(StrongRuleNode);