From f0d749a5444e1d8c7a6c7c9e91d27b9a7aa36ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 13 Nov 2017 14:59:03 +0100 Subject: [PATCH] style: Stop allowing unused_unsafe. --- components/style/lib.rs | 9 --------- components/style/rule_tree/mod.rs | 4 +--- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/components/style/lib.rs b/components/style/lib.rs index b7a7a0ecbab..594ae8e8146 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -26,15 +26,6 @@ #![deny(warnings)] #![deny(missing_docs)] -// FIXME(bholley): We need to blanket-allow unsafe code in order to make the -// gecko atom!() macro work. When Rust 1.14 is released [1], we can uncomment -// the commented-out attributes in regen_atoms.py and go back to denying unsafe -// code by default. -// -// [1] https://github.com/rust-lang/rust/issues/15701#issuecomment-251900615 -//#![deny(unsafe_code)] -#![allow(unused_unsafe)] - #![recursion_limit = "500"] // For define_css_keyword_enum! in -moz-appearance extern crate app_units; diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs index e2a8cbc106e..c823710b906 100644 --- a/components/style/rule_tree/mod.rs +++ b/components/style/rule_tree/mod.rs @@ -590,9 +590,7 @@ impl PrevSiblingOrFreeCount { } unsafe fn as_free_count(&self) -> &AtomicUsize { - unsafe { - mem::transmute(&self.0) - } + mem::transmute(&self.0) } }