diff options
Diffstat (limited to 'components/servo_arc/lib.rs')
-rw-r--r-- | components/servo_arc/lib.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs index aa79140e044..53c7d7aaa31 100644 --- a/components/servo_arc/lib.rs +++ b/components/servo_arc/lib.rs @@ -182,7 +182,7 @@ impl<T> Arc<T> { // FIXME(emilio): Would be so amazing to have // std::intrinsics::type_name() around, so that we could also report // a real size. - NS_LogCtor(ptr as *const _, b"ServoArc\0".as_ptr() as *const _, 8); + NS_LogCtor(ptr as *mut _, b"ServoArc\0".as_ptr() as *const _, 8); } unsafe { @@ -314,11 +314,7 @@ impl<T: ?Sized> Arc<T> { fn record_drop(&self) { #[cfg(feature = "gecko_refcount_logging")] unsafe { - NS_LogDtor( - self.ptr() as *const _, - b"ServoArc\0".as_ptr() as *const _, - 8, - ); + NS_LogDtor(self.ptr() as *mut _, b"ServoArc\0".as_ptr() as *const _, 8); } } @@ -355,12 +351,12 @@ impl<T: ?Sized> Arc<T> { #[cfg(feature = "gecko_refcount_logging")] extern "C" { fn NS_LogCtor( - aPtr: *const std::os::raw::c_void, + aPtr: *mut std::os::raw::c_void, aTypeName: *const std::os::raw::c_char, aSize: u32, ); fn NS_LogDtor( - aPtr: *const std::os::raw::c_void, + aPtr: *mut std::os::raw::c_void, aTypeName: *const std::os::raw::c_char, aSize: u32, ); @@ -762,7 +758,7 @@ impl<H, T> Arc<HeaderSlice<H, [T]>> { if !is_static { // FIXME(emilio): Would be so amazing to have // std::intrinsics::type_name() around. - NS_LogCtor(ptr as *const _, b"ServoArc\0".as_ptr() as *const _, 8) + NS_LogCtor(ptr as *mut _, b"ServoArc\0".as_ptr() as *const _, 8) } } |