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 {
671
671
#[ rustc_intrinsic]
672
672
pub unsafe fn ctlz_nonzero < T > ( x : T ) -> u32 ;
673
673
#[ rustc_intrinsic]
674
- pub fn needs_drop < T : ?:: Sized > ( ) -> bool ;
674
+ pub const fn needs_drop < T : ?:: Sized > ( ) -> bool ;
675
675
#[ rustc_intrinsic]
676
676
pub fn bitreverse < T > ( x : T ) -> T ;
677
677
#[ rustc_intrinsic]
Original file line number Diff line number Diff line change @@ -198,8 +198,6 @@ fn main() {
198
198
assert_eq ! ( intrinsics:: align_of:: <u16 >( ) as u8 , 2 ) ;
199
199
assert_eq ! ( intrinsics:: align_of_val( & a) as u8 , intrinsics:: align_of:: <& str >( ) as u8 ) ;
200
200
201
- /*
202
- * TODO: re-enable in the next sync.
203
201
let u8_needs_drop = const { intrinsics:: needs_drop :: < u8 > ( ) } ;
204
202
assert ! ( !u8_needs_drop) ;
205
203
let slice_needs_drop = const { intrinsics:: needs_drop :: < [ u8 ] > ( ) } ;
@@ -208,7 +206,6 @@ fn main() {
208
206
assert ! ( noisy_drop) ;
209
207
let noisy_unsized_drop = const { intrinsics:: needs_drop :: < NoisyDropUnsized > ( ) } ;
210
208
assert ! ( noisy_unsized_drop) ;
211
- */
212
209
213
210
Unique {
214
211
pointer : 0 as * const & str ,
You can’t perform that action at this time.
0 commit comments