aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_debug.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-02-08 20:03:17 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-08 20:03:27 +0100
commit7c6b03abfeaf97950ee6a9ff8316a9277a5cf069 (patch)
tree743327332930fd9d525c4609022f9798467a395c /components/layout/layout_debug.rs
parenta819b0b1b609d94e2b7d5a352f1c0d8592874a3c (diff)
downloadservo-7c6b03abfeaf97950ee6a9ff8316a9277a5cf069.tar.gz
servo-7c6b03abfeaf97950ee6a9ff8316a9277a5cf069.zip
Opt-in rather than opt-out to unsafe blocks in layout.
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r--components/layout/layout_debug.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs
index 5fc606b8705..a3a11a3d085 100644
--- a/components/layout/layout_debug.rs
+++ b/components/layout/layout_debug.rs
@@ -95,6 +95,7 @@ impl Drop for Scope {
/// Generate a unique ID. This is used for items such as Fragment
/// which are often reallocated but represent essentially the
/// same data.
+#[allow(unsafe_blocks)]
pub fn generate_unique_debug_id() -> u16 {
unsafe { DEBUG_ID_COUNTER.fetch_add(1, Ordering::SeqCst) as u16 }
}