@@ -337,19 +337,28 @@ macro_rules! repeat_u8_as_u64 {
337
337
// But having the sign bit set is a pain, so 0x1d is probably better.
338
338
//
339
339
// And of course, 0x00 brings back the old world of zero'ing on drop.
340
- #[ cfg( not( stage0) ) ] pub const POST_DROP_U8 : u8 = 0x1d ;
341
- #[ cfg( not( stage0) ) ] pub const POST_DROP_U32 : u32 = repeat_u8_as_u32 ! ( POST_DROP_U8 ) ;
342
- #[ cfg( not( stage0) ) ] pub const POST_DROP_U64 : u64 = repeat_u8_as_u64 ! ( POST_DROP_U8 ) ;
340
+ #[ cfg( not( stage0) ) ] #[ unstable( feature = "filling_drop" ) ]
341
+ pub const POST_DROP_U8 : u8 = 0x1d ;
342
+ #[ cfg( not( stage0) ) ] #[ unstable( feature = "filling_drop" ) ]
343
+ pub const POST_DROP_U32 : u32 = repeat_u8_as_u32 ! ( POST_DROP_U8 ) ;
344
+ #[ cfg( not( stage0) ) ] #[ unstable( feature = "filling_drop" ) ]
345
+ pub const POST_DROP_U64 : u64 = repeat_u8_as_u64 ! ( POST_DROP_U8 ) ;
343
346
344
347
#[ cfg( target_pointer_width = "32" ) ]
345
- #[ cfg( not( stage0) ) ] pub const POST_DROP_USIZE : usize = POST_DROP_U32 as usize ;
348
+ #[ cfg( not( stage0) ) ] #[ unstable( feature = "filling_drop" ) ]
349
+ pub const POST_DROP_USIZE : usize = POST_DROP_U32 as usize ;
346
350
#[ cfg( target_pointer_width = "64" ) ]
347
- #[ cfg( not( stage0) ) ] pub const POST_DROP_USIZE : usize = POST_DROP_U64 as usize ;
351
+ #[ cfg( not( stage0) ) ] #[ unstable( feature = "filling_drop" ) ]
352
+ pub const POST_DROP_USIZE : usize = POST_DROP_U64 as usize ;
348
353
349
- #[ cfg( stage0) ] pub const POST_DROP_U8 : u8 = 0 ;
350
- #[ cfg( stage0) ] pub const POST_DROP_U32 : u32 = 0 ;
351
- #[ cfg( stage0) ] pub const POST_DROP_U64 : u64 = 0 ;
352
- #[ cfg( stage0) ] pub const POST_DROP_USIZE : usize = 0 ;
354
+ #[ cfg( stage0) ] #[ unstable( feature = "filling_drop" ) ]
355
+ pub const POST_DROP_U8 : u8 = 0 ;
356
+ #[ cfg( stage0) ] #[ unstable( feature = "filling_drop" ) ]
357
+ pub const POST_DROP_U32 : u32 = 0 ;
358
+ #[ cfg( stage0) ] #[ unstable( feature = "filling_drop" ) ]
359
+ pub const POST_DROP_U64 : u64 = 0 ;
360
+ #[ cfg( stage0) ] #[ unstable( feature = "filling_drop" ) ]
361
+ pub const POST_DROP_USIZE : usize = 0 ;
353
362
354
363
/// Interprets `src` as `&U`, and then reads `src` without moving the contained value.
355
364
///
0 commit comments