Skip to content

Commit 3fdf349

Browse files
committed
Fix and re-enable mini-core test
1 parent 80340cd commit 3fdf349

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

example/mini_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

example/mini_core_hello_world.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)