]> git.lizzy.rs Git - rust.git/commit
Auto merge of #49573 - glandium:huge-align, r=SimonSapin
authorbors <bors@rust-lang.org>
Wed, 4 Apr 2018 03:48:22 +0000 (03:48 +0000)
committerbors <bors@rust-lang.org>
Wed, 4 Apr 2018 03:48:22 +0000 (03:48 +0000)
commit20338a52401bda3024fd91010a143913a8dc9a6c
treeae228154da10f194280f1efe3994b7a73ec4b792
parent199b7e211d6d9173fded261e0a4de984efc0c2eb
parent98175a8793942a60bce944050ba4fcb1cd067055
Auto merge of #49573 - glandium:huge-align, r=SimonSapin

Reject huge alignments on macos with system allocator only

ef8804ba277b055fdc3e6d148e680e3c1b597ad8 addressed #30170 by rejecting
huge alignments at the allocator API level, transforming a specific
platform bug/limitation into an enforced API limitation on all
platforms.

This change essentially reverts that commit, and instead makes alloc()
itself return AllocErr::Unsupported when receiving huge alignments.

This was discussed in https://github.com/rust-lang/rust/issues/32838#issuecomment-368348408
and following.
src/liballoc_system/lib.rs