aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/lib.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-10-12 18:12:47 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-10-13 11:11:07 +0200
commite13ae77daf8c86db20ec9414043a683c16779bfc (patch)
tree410caaefa8b10da029e1c88714a648b5802d1a8d /components/layout/lib.rs
parent4727b92754be504c37a62dfe806999e40a3339f6 (diff)
downloadservo-e13ae77daf8c86db20ec9414043a683c16779bfc.tar.gz
servo-e13ae77daf8c86db20ec9414043a683c16779bfc.zip
Remove usage of unstable feature "raw"
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 (),
+}