mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 1475691 - Make Servo build. r=me
StrongRuleNode is really Sync.
This commit is contained in:
parent
52be7ed562
commit
29ac8f82e5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user