mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Make MallocSizeOf::malloc_{,enclosing_}size_of unsafe.
This fixes #18473.
This commit is contained in:
parent
cad3aff508
commit
f83099f62a
3 changed files with 13 additions and 13 deletions
|
@ -55,7 +55,7 @@ impl StyleRule {
|
|||
// It's safe to measure this ThinArc directly because it's the
|
||||
// "primary" reference. (The secondary references are on the
|
||||
// Stylist.)
|
||||
n += ops.malloc_size_of(selector.thin_arc_heap_ptr());
|
||||
n += unsafe { ops.malloc_size_of(selector.thin_arc_heap_ptr()) };
|
||||
}
|
||||
|
||||
n += self.block.unconditional_shallow_size_of(ops) +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue