From 8dce3e5c9aa5cfbd737b9863e01993de6a494d60 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 30 Dec 2016 11:11:25 +0100 Subject: [PATCH] Stop allowing unsafe code around thread_local. --- components/layout/context.rs | 3 --- components/layout/layout_debug.rs | 3 --- 2 files changed, 6 deletions(-) diff --git a/components/layout/context.rs b/components/layout/context.rs index e2d1fa7831c..1cbee049f02 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -4,9 +4,6 @@ //! Data needed by the layout thread. -// for thread_local -#![allow(unsafe_code)] - use fnv::FnvHasher; use gfx::display_list::WebRenderImageInfo; use gfx::font_cache_thread::FontCacheThread; diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs index 3a8a1171287..9b67077add0 100644 --- a/components/layout/layout_debug.rs +++ b/components/layout/layout_debug.rs @@ -5,9 +5,6 @@ //! Supports writing a trace file created during each layout scope //! that can be viewed by an external tool to make layout debugging easier. -// for thread_local -#![allow(unsafe_code)] - use flow; use flow_ref::FlowRef; use serde_json::{to_string, to_value, Value};