@@ -285,7 +285,7 @@ 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_attr ( not ( stage0 ) , rustc_promotable) ]
288
+ #[ rustc_promotable]
289
289
pub const fn size_of < T > ( ) -> usize {
290
290
intrinsics:: size_of :: < T > ( )
291
291
}
@@ -377,7 +377,7 @@ pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
377
377
/// ```
378
378
#[ inline]
379
379
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
380
- #[ cfg_attr ( not ( stage0 ) , rustc_promotable) ]
380
+ #[ rustc_promotable]
381
381
pub const fn align_of < T > ( ) -> usize {
382
382
intrinsics:: min_align_of :: < T > ( )
383
383
}
@@ -458,19 +458,10 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
458
458
#[ inline]
459
459
#[ stable( feature = "needs_drop" , since = "1.21.0" ) ]
460
460
#[ rustc_const_unstable( feature = "const_needs_drop" ) ]
461
- #[ cfg( not( stage0) ) ]
462
461
pub const fn needs_drop < T > ( ) -> bool {
463
462
intrinsics:: needs_drop :: < T > ( )
464
463
}
465
464
466
- #[ inline]
467
- #[ stable( feature = "needs_drop" , since = "1.21.0" ) ]
468
- #[ cfg( stage0) ]
469
- /// Ceci n'est pas la documentation
470
- pub fn needs_drop < T > ( ) -> bool {
471
- unsafe { intrinsics:: needs_drop :: < T > ( ) }
472
- }
473
-
474
465
/// Creates a value whose bytes are all zero.
475
466
///
476
467
/// This has the same effect as allocating space with
0 commit comments