File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ pub mod intrinsics {
671671 #[ rustc_intrinsic]
672672 pub unsafe fn ctlz_nonzero < T > ( x : T ) -> u32 ;
673673 #[ rustc_intrinsic]
674- pub fn needs_drop < T : ?:: Sized > ( ) -> bool ;
674+ pub const fn needs_drop < T : ?:: Sized > ( ) -> bool ;
675675 #[ rustc_intrinsic]
676676 pub fn bitreverse < T > ( x : T ) -> T ;
677677 #[ rustc_intrinsic]
Original file line number Diff line number Diff line change @@ -198,8 +198,6 @@ fn main() {
198198 assert_eq ! ( intrinsics:: align_of:: <u16 >( ) as u8 , 2 ) ;
199199 assert_eq ! ( intrinsics:: align_of_val( & a) as u8 , intrinsics:: align_of:: <& str >( ) as u8 ) ;
200200
201- /*
202- * TODO: re-enable in the next sync.
203201 let u8_needs_drop = const { intrinsics:: needs_drop :: < u8 > ( ) } ;
204202 assert ! ( !u8_needs_drop) ;
205203 let slice_needs_drop = const { intrinsics:: needs_drop :: < [ u8 ] > ( ) } ;
@@ -208,7 +206,6 @@ fn main() {
208206 assert ! ( noisy_drop) ;
209207 let noisy_unsized_drop = const { intrinsics:: needs_drop :: < NoisyDropUnsized > ( ) } ;
210208 assert ! ( noisy_unsized_drop) ;
211- */
212209
213210 Unique {
214211 pointer : 0 as * const & str ,
You can’t perform that action at this time.
0 commit comments