about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-09-14 12:49:23 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2019-09-14 12:49:23 +0200
commit554a1aa0ba702d4a438ccd291d882ea3a3d27cd8 (patch)
tree45912578631638b0cb15d276fc7f2ffb1737473e /example
parent8f12b8754231e63d751616574e82142a6a8ae69b (diff)
downloadrust-554a1aa0ba702d4a438ccd291d882ea3a3d27cd8.tar.gz
rust-554a1aa0ba702d4a438ccd291d882ea3a3d27cd8.zip
Reenable debug assertions for libstd on macOS
m4b/faerie#91 has been merged
Diffstat (limited to 'example')
-rw-r--r--example/mini_core_hello_world.rs6
1 files changed, 1 insertions, 5 deletions
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;