From 45cbd77af16b2ba3456a298171fb4b077b84c810 Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Wed, 25 Jun 2014 16:56:16 +0900 Subject: [PATCH] Suppress the compiler warning about raw_pointer_deriving in layout/context.rs. This suppress the following compile warning: ``` compile: servo src/components/main/layout/context.rs:75:18: 75:26 warning: use of `#[deriving]` with a raw pointer, #[warn(raw_pointer_deriving)] on by default src/components/main/layout/context.rs:75 pub stylist: *Stylist, ^~~~~~~~ ``` --- src/components/main/layout/context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/main/layout/context.rs b/src/components/main/layout/context.rs index 6d0391aaa85..4163de71c6c 100644 --- a/src/components/main/layout/context.rs +++ b/src/components/main/layout/context.rs @@ -52,6 +52,7 @@ static mut STYLE_SHARING_CANDIDATE_CACHE: *mut StyleSharingCandidateCache = local_data_key!(style_sharing_candidate_cache: *mut StyleSharingCandidateCache) /// Data shared by all layout workers. +#[allow(raw_pointer_deriving)] #[deriving(Clone)] pub struct LayoutContext { /// The local image cache.