@@ -285,7 +285,7 @@ pub fn forget<T>(t: T) {
285285/// [alignment]: ./fn.align_of.html
286286#[ inline]
287287#[ stable( feature = "rust1" , since = "1.0.0" ) ]
288- #[ cfg_attr ( not ( stage0 ) , rustc_promotable) ]
288+ #[ rustc_promotable]
289289pub const fn size_of < T > ( ) -> usize {
290290 intrinsics:: size_of :: < T > ( )
291291}
@@ -377,7 +377,7 @@ pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
377377/// ```
378378#[ inline]
379379#[ stable( feature = "rust1" , since = "1.0.0" ) ]
380- #[ cfg_attr ( not ( stage0 ) , rustc_promotable) ]
380+ #[ rustc_promotable]
381381pub const fn align_of < T > ( ) -> usize {
382382 intrinsics:: min_align_of :: < T > ( )
383383}
@@ -458,19 +458,10 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
458458#[ inline]
459459#[ stable( feature = "needs_drop" , since = "1.21.0" ) ]
460460#[ rustc_const_unstable( feature = "const_needs_drop" ) ]
461- #[ cfg( not( stage0) ) ]
462461pub const fn needs_drop < T > ( ) -> bool {
463462 intrinsics:: needs_drop :: < T > ( )
464463}
465464
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-
474465/// Creates a value whose bytes are all zero.
475466///
476467/// This has the same effect as allocating space with
0 commit comments