diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-02-08 21:00:43 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-02-08 21:00:43 -0700 |
commit | 1a47f176ffb059a7a3f29f94485859163cb1284b (patch) | |
tree | 88c31b2899c1ac3ccd9d20c4904d48d54067e59e /components/layout/layout_debug.rs | |
parent | 13b49ddf446871e7c544bd0b5d6457168c84de46 (diff) | |
parent | 18b49fd68ed56c586b4d16b12a7e12ce5a50ffa8 (diff) | |
download | servo-1a47f176ffb059a7a3f29f94485859163cb1284b.tar.gz servo-1a47f176ffb059a7a3f29f94485859163cb1284b.zip |
auto merge of #4869 : Ms2ger/servo/layout-unsafe, r=jdm
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r-- | components/layout/layout_debug.rs | 1 |
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 } } |