@@ -285,19 +285,10 @@ pub fn forget<T>(t: T) {
285285/// [alignment]: ./fn.align_of.html
286286#[ inline]
287287#[ stable( feature = "rust1" , since = "1.0.0" ) ]
288- #[ cfg( not( stage0) ) ]
289288pub const fn size_of < T > ( ) -> usize {
290289 intrinsics:: size_of :: < T > ( )
291290}
292291
293- #[ inline]
294- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
295- #[ cfg( stage0) ]
296- /// Ceci n'est pas la documentation
297- pub const fn size_of < T > ( ) -> usize {
298- unsafe { intrinsics:: size_of :: < T > ( ) }
299- }
300-
301292/// Returns the size of the pointed-to value in bytes.
302293///
303294/// This is usually the same as `size_of::<T>()`. However, when `T` *has* no
@@ -343,20 +334,10 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
343334#[ inline]
344335#[ stable( feature = "rust1" , since = "1.0.0" ) ]
345336#[ rustc_deprecated( reason = "use `align_of` instead" , since = "1.2.0" ) ]
346- #[ cfg( not( stage0) ) ]
347337pub fn min_align_of < T > ( ) -> usize {
348338 intrinsics:: min_align_of :: < T > ( )
349339}
350340
351- #[ inline]
352- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
353- #[ rustc_deprecated( reason = "use `align_of` instead" , since = "1.2.0" ) ]
354- #[ cfg( stage0) ]
355- /// Ceci n'est pas la documentation
356- pub fn min_align_of < T > ( ) -> usize {
357- unsafe { intrinsics:: min_align_of :: < T > ( ) }
358- }
359-
360341/// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to.
361342///
362343/// Every reference to a value of the type `T` must be a multiple of this number.
@@ -395,19 +376,10 @@ pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
395376/// ```
396377#[ inline]
397378#[ stable( feature = "rust1" , since = "1.0.0" ) ]
398- #[ cfg( not( stage0) ) ]
399379pub const fn align_of < T > ( ) -> usize {
400380 intrinsics:: min_align_of :: < T > ( )
401381}
402382
403- #[ inline]
404- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
405- #[ cfg( stage0) ]
406- /// Ceci n'est pas la documentation
407- pub const fn align_of < T > ( ) -> usize {
408- unsafe { intrinsics:: min_align_of :: < T > ( ) }
409- }
410-
411383/// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to.
412384///
413385/// Every reference to a value of the type `T` must be a multiple of this number.
0 commit comments