Closed
Description
Shouldn't mem::__llvm_memcpy_element_unordered_atomic_1
and similar functions be marked as unsafe
? The following program crashes with "Segmentation fault (core dumped)".
// compiler_builtins = "=0.1.23"
extern crate compiler_builtins;
fn main() {
compiler_builtins::mem::__llvm_memcpy_element_unordered_atomic_1(
std::ptr::null::<u128>() as *mut u8,
std::ptr::null(),
1
);
}
Metadata
Metadata
Assignees
Labels
No labels