mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-15 05:44:15 +00:00
C11 `aligned_alloc` requires that the size be a multiple of the alignment. This is enforced in the wasi-libc emmalloc implementation, which always returns NULL if the size is not a multiple. (The default `MALLOC_IMPL=dlmalloc` does not currently check this.)