Remove usage of unstable feature "raw"

This commit is contained in:
Simon Sapin 2017-10-12 18:12:47 +02:00
parent 4727b92754
commit e13ae77daf
4 changed files with 43 additions and 6 deletions

View file

@ -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 (),
}