]> git.lizzy.rs Git - rust.git/commit
Auto merge of #44049 - alexcrichton:nounwind-allocators, r=BurntSushi
authorbors <bors@rust-lang.org>
Tue, 29 Aug 2017 00:58:17 +0000 (00:58 +0000)
committerbors <bors@rust-lang.org>
Tue, 29 Aug 2017 00:58:17 +0000 (00:58 +0000)
commitd2d50691aadfb9e25c8c3d9a1d71a8c79607c5b2
tree5637287278edb5a32ba238c8c3ee070895047997
parentbef07b859dc1aad3a8a23ec8890dae1999c58032
parentb6f554b6dc972608761db93a375bcb0e89155e1d
Auto merge of #44049 - alexcrichton:nounwind-allocators, r=BurntSushi

std: Mark allocation functions as nounwind

This commit flags all allocation-related functions in liballoc as "this can't
unwind" which should largely resolve the size-related issues found on #42808.
The documentation on the trait was updated with such a restriction (they can't
panic) as well as some other words about the relative instability about
implementing a bullet-proof allocator.

Closes #42808
src/liballoc/allocator.rs
src/liballoc/lib.rs