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/flow.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/flow.rs')
-rw-r--r-- | components/layout/flow.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs index 9ca0446b9c4..cb1658879cd 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -294,6 +294,7 @@ pub trait Flow: fmt::Show + Sync { } /// Returns a layer ID for the given fragment. + #[allow(unsafe_blocks)] fn layer_id(&self, fragment_id: uint) -> LayerId { unsafe { let obj = mem::transmute::<&&Self, &raw::TraitObject>(&self); @@ -310,6 +311,7 @@ pub trait Flow: fmt::Show + Sync { // Base access #[inline(always)] +#[allow(unsafe_blocks)] pub fn base<'a, T: ?Sized + Flow>(this: &'a T) -> &'a BaseFlow { unsafe { let obj = mem::transmute::<&&'a T, &'a raw::TraitObject>(&this); @@ -323,6 +325,7 @@ pub fn imm_child_iter<'a>(flow: &'a Flow) -> FlowListIterator<'a> { } #[inline(always)] +#[allow(unsafe_blocks)] pub fn mut_base<'a, T: ?Sized + Flow>(this: &'a mut T) -> &'a mut BaseFlow { unsafe { let obj = mem::transmute::<&&'a mut T, &'a raw::TraitObject>(&this); |