mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
1baf77aad0
wasi: round up the size for `aligned_alloc` 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.)