]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.

1  2 
src/liballoc_system/lib.rs

Simple merge