Make MallocSizeOf::malloc_{,enclosing_}size_of unsafe.

This fixes #18473.
This commit is contained in:
Nicholas Nethercote 2017-09-13 15:59:54 +10:00
parent cad3aff508
commit f83099f62a
3 changed files with 13 additions and 13 deletions

View file

@ -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) +