diff options
Diffstat (limited to 'src/libcore/raw.rs')
| -rw-r--r-- | src/libcore/raw.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcore/raw.rs b/src/libcore/raw.rs index da9fab0fc6f..aa8a4976867 100644 --- a/src/libcore/raw.rs +++ b/src/libcore/raw.rs @@ -51,10 +51,16 @@ pub struct Procedure { /// /// This struct does not have a `Repr` implementation /// because there is no way to refer to all trait objects generically. +#[cfg(stage0)] pub struct TraitObject { pub vtable: *mut (), pub data: *mut (), } +#[cfg(not(stage0))] +pub struct TraitObject { + pub data: *(), + pub vtable: *(), +} /// This trait is meant to map equivalences between raw structs and their /// corresponding rust values. |
