Skip to content

Commit 554a1aa

Browse files
committed
Reenable debug assertions for libstd on macOS
m4b/faerie#91 has been merged
1 parent 8f12b87 commit 554a1aa

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

build_sysroot/Cargo.toml

-6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,5 @@ rustc-std-workspace-core = { path = "./sysroot_src/src/tools/rustc-std-workspace
1717
rustc-std-workspace-alloc = { path = "./sysroot_src/src/tools/rustc-std-workspace-alloc" }
1818
rustc-std-workspace-std = { path = "./sysroot_src/src/tools/rustc-std-workspace-std" }
1919

20-
[profile.dev]
21-
# FIXME On macOS statics and promoted constants have the wrong alignment. This causes a debug
22-
# assertion in `copy_nonoverlapping` to panic.
23-
debug-assertions = false
24-
2520
[profile.release]
2621
debug = true
27-
debug-assertions = false

example/mini_core_hello_world.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,7 @@ fn main() {
137137
let slice = &[0, 1] as &[i32];
138138
let slice_ptr = slice as *const [i32] as *const i32;
139139

140-
// FIXME On macOS statics and promoted constants have the wrong alignment. This causes this
141-
// assertion to fail.
142-
if cfg!(not(target_os = "macos")) {
143-
assert_eq!(slice_ptr as usize % 4, 0);
144-
}
140+
assert_eq!(slice_ptr as usize % 4, 0);
145141

146142
//return;
147143

0 commit comments

Comments
 (0)