diff options
Diffstat (limited to 'components/malloc_size_of/lib.rs')
-rw-r--r-- | components/malloc_size_of/lib.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/components/malloc_size_of/lib.rs b/components/malloc_size_of/lib.rs index c722c176c5d..b2aadc872a9 100644 --- a/components/malloc_size_of/lib.rs +++ b/components/malloc_size_of/lib.rs @@ -415,7 +415,7 @@ impl<T: MallocSizeOf, U> MallocSizeOf for euclid::TypedSize2D<T, U> { /// For use on types where size_of() returns 0. #[macro_export] -macro_rules! size_of_is_0( +macro_rules! malloc_size_of_is_0( ($($ty:ty),+) => ( $( impl $crate::MallocSizeOf for $ty { @@ -438,14 +438,14 @@ macro_rules! size_of_is_0( ); ); -size_of_is_0!(bool, char, str); -size_of_is_0!(u8, u16, u32, u64, usize); -size_of_is_0!(i8, i16, i32, i64, isize); -size_of_is_0!(f32, f64); +malloc_size_of_is_0!(bool, char, str); +malloc_size_of_is_0!(u8, u16, u32, u64, usize); +malloc_size_of_is_0!(i8, i16, i32, i64, isize); +malloc_size_of_is_0!(f32, f64); -size_of_is_0!(Range<u8>, Range<u16>, Range<u32>, Range<u64>, Range<usize>); -size_of_is_0!(Range<i8>, Range<i16>, Range<i32>, Range<i64>, Range<isize>); -size_of_is_0!(Range<f32>, Range<f64>); +malloc_size_of_is_0!(Range<u8>, Range<u16>, Range<u32>, Range<u64>, Range<usize>); +malloc_size_of_is_0!(Range<i8>, Range<i16>, Range<i32>, Range<i64>, Range<isize>); +malloc_size_of_is_0!(Range<f32>, Range<f64>); -size_of_is_0!(app_units::Au); -size_of_is_0!(cssparser::RGBA, cssparser::TokenSerializationType); +malloc_size_of_is_0!(app_units::Au); +malloc_size_of_is_0!(cssparser::RGBA, cssparser::TokenSerializationType); |