@@ -43,7 +43,7 @@ pub use intrinsics::forget;
43
43
/// ```
44
44
#[ inline]
45
45
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
46
- pub fn size_of < T > ( ) -> uint {
46
+ pub fn size_of < T > ( ) -> usize {
47
47
unsafe { intrinsics:: size_of :: < T > ( ) }
48
48
}
49
49
@@ -58,7 +58,7 @@ pub fn size_of<T>() -> uint {
58
58
/// ```
59
59
#[ inline]
60
60
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
61
- pub fn size_of_val < T > ( _val : & T ) -> uint {
61
+ pub fn size_of_val < T > ( _val : & T ) -> usize {
62
62
size_of :: < T > ( )
63
63
}
64
64
@@ -75,7 +75,7 @@ pub fn size_of_val<T>(_val: &T) -> uint {
75
75
/// ```
76
76
#[ inline]
77
77
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
78
- pub fn min_align_of < T > ( ) -> uint {
78
+ pub fn min_align_of < T > ( ) -> usize {
79
79
unsafe { intrinsics:: min_align_of :: < T > ( ) }
80
80
}
81
81
@@ -90,7 +90,7 @@ pub fn min_align_of<T>() -> uint {
90
90
/// ```
91
91
#[ inline]
92
92
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
93
- pub fn min_align_of_val < T > ( _val : & T ) -> uint {
93
+ pub fn min_align_of_val < T > ( _val : & T ) -> usize {
94
94
min_align_of :: < T > ( )
95
95
}
96
96
@@ -108,7 +108,7 @@ pub fn min_align_of_val<T>(_val: &T) -> uint {
108
108
/// ```
109
109
#[ inline]
110
110
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
111
- pub fn align_of < T > ( ) -> uint {
111
+ pub fn align_of < T > ( ) -> usize {
112
112
// We use the preferred alignment as the default alignment for a type. This
113
113
// appears to be what clang migrated towards as well:
114
114
//
@@ -130,7 +130,7 @@ pub fn align_of<T>() -> uint {
130
130
/// ```
131
131
#[ inline]
132
132
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
133
- pub fn align_of_val < T > ( _val : & T ) -> uint {
133
+ pub fn align_of_val < T > ( _val : & T ) -> usize {
134
134
align_of :: < T > ( )
135
135
}
136
136
@@ -150,7 +150,7 @@ pub fn align_of_val<T>(_val: &T) -> uint {
150
150
/// ```
151
151
/// use std::mem;
152
152
///
153
- /// let x: int = unsafe { mem::zeroed() };
153
+ /// let x: i32 = unsafe { mem::zeroed() };
154
154
/// ```
155
155
#[ inline]
156
156
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -171,7 +171,7 @@ pub unsafe fn zeroed<T>() -> T {
171
171
/// ```
172
172
/// use std::mem;
173
173
///
174
- /// let x: int = unsafe { mem::uninitialized() };
174
+ /// let x: i32 = unsafe { mem::uninitialized() };
175
175
/// ```
176
176
#[ inline]
177
177
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
0 commit comments