diff options
Diffstat (limited to 'src/libstd/intrinsics.rs')
| -rw-r--r-- | src/libstd/intrinsics.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libstd/intrinsics.rs b/src/libstd/intrinsics.rs index 55e7746a44d..6fe6b3c3639 100644 --- a/src/libstd/intrinsics.rs +++ b/src/libstd/intrinsics.rs @@ -41,7 +41,7 @@ A quick refresher on memory ordering: */ -#[allow(missing_doc)]; +#![allow(missing_doc)] // This is needed to prevent duplicate lang item definitions. #[cfg(test)] @@ -53,19 +53,19 @@ pub type GlueFn = extern "Rust" fn(*i8); #[cfg(not(test))] pub struct TyDesc { // sizeof(T) - size: uint, + pub size: uint, // alignof(T) - align: uint, + pub align: uint, // Called when a value of type `T` is no longer needed - drop_glue: GlueFn, + pub drop_glue: GlueFn, // Called by reflection visitor to visit a value of type `T` - visit_glue: GlueFn, + pub visit_glue: GlueFn, // Name corresponding to the type - name: &'static str + pub name: &'static str, } #[lang="opaque"] @@ -296,7 +296,7 @@ extern "rust-intrinsic" { /// Create a value initialized to zero. /// /// `init` is unsafe because it returns a zeroed-out datum, - /// which is unsafe unless T is Pod. + /// which is unsafe unless T is Copy. pub fn init<T>() -> T; /// Create an uninitialized value. @@ -451,10 +451,10 @@ extern "rust-intrinsic" { /// `TypeId` represents a globally unique identifier for a type #[lang="type_id"] // This needs to be kept in lockstep with the code in trans/intrinsic.rs and // middle/lang_items.rs -#[deriving(Eq, Hash, Show)] +#[deriving(Eq, Hash, Show, TotalEq)] #[cfg(not(test))] pub struct TypeId { - priv t: u64, + t: u64, } #[cfg(not(test))] |
