aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/lib.rs')
-rw-r--r--components/layout/lib.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/components/layout/lib.rs b/components/layout/lib.rs
index eb337c4b015..ab8beba722a 100644
--- a/components/layout/lib.rs
+++ b/components/layout/lib.rs
@@ -4,7 +4,6 @@
#![deny(unsafe_code)]
#![feature(box_patterns)]
-#![feature(raw)]
extern crate app_units;
extern crate atomic_refcell;
@@ -92,3 +91,12 @@ pub use self::data::LayoutData;
// We can't use servo_arc for everything in layout, because the Flow stuff uses
// weak references.
use servo_arc::Arc as ServoArc;
+
+/// Stable copy of std::raw::TraitObject
+/// test/unit/layout/lib.rs asserts that the memory layout matches.
+#[repr(C)]
+#[derive(Clone, Copy)]
+pub struct TraitObject {
+ pub data: *mut (),
+ pub vtable: *mut (),
+}