@@ -285,19 +285,10 @@ pub fn forget<T>(t: T) {
285
285
/// [alignment]: ./fn.align_of.html
286
286
#[ inline]
287
287
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
288
- #[ cfg( not( stage0) ) ]
289
288
pub const fn size_of < T > ( ) -> usize {
290
289
intrinsics:: size_of :: < T > ( )
291
290
}
292
291
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
-
301
292
/// Returns the size of the pointed-to value in bytes.
302
293
///
303
294
/// 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 {
343
334
#[ inline]
344
335
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
345
336
#[ rustc_deprecated( reason = "use `align_of` instead" , since = "1.2.0" ) ]
346
- #[ cfg( not( stage0) ) ]
347
337
pub fn min_align_of < T > ( ) -> usize {
348
338
intrinsics:: min_align_of :: < T > ( )
349
339
}
350
340
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
-
360
341
/// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to.
361
342
///
362
343
/// 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 {
395
376
/// ```
396
377
#[ inline]
397
378
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
398
- #[ cfg( not( stage0) ) ]
399
379
pub const fn align_of < T > ( ) -> usize {
400
380
intrinsics:: min_align_of :: < T > ( )
401
381
}
402
382
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
-
411
383
/// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to.
412
384
///
413
385
/// Every reference to a value of the type `T` must be a multiple of this number.
0 commit comments