From 554a1aa0ba702d4a438ccd291d882ea3a3d27cd8 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 14 Sep 2019 12:49:23 +0200 Subject: Reenable debug assertions for libstd on macOS m4b/faerie#91 has been merged --- example/mini_core_hello_world.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'example') diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs index 5d65dd4d94f..18362ee036b 100644 --- a/example/mini_core_hello_world.rs +++ b/example/mini_core_hello_world.rs @@ -137,11 +137,7 @@ fn main() { let slice = &[0, 1] as &[i32]; let slice_ptr = slice as *const [i32] as *const i32; - // FIXME On macOS statics and promoted constants have the wrong alignment. This causes this - // assertion to fail. - if cfg!(not(target_os = "macos")) { - assert_eq!(slice_ptr as usize % 4, 0); - } + assert_eq!(slice_ptr as usize % 4, 0); //return; -- cgit 1.4.1-3-g733a5