]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #51543 - SimonSapin:oom, r=SimonSapin
authorbors <bors@rust-lang.org>
Tue, 19 Jun 2018 19:22:12 +0000 (19:22 +0000)
committerbors <bors@rust-lang.org>
Tue, 19 Jun 2018 19:22:12 +0000 (19:22 +0000)
Rename OOM to allocation error

The acronym is not descriptive unless one has seen it before.

* Rename the `oom` function to `handle_alloc_error`. It was **stabilized in 1.28**, so if we do this at all we need to land it this cycle.
* Rename `set_oom_hook` to `set_alloc_error_hook`
* Rename `take_oom_hook` to `take_alloc_error_hook`

Bikeshed: `on` v.s. `for`, `alloc` v.s. `allocator`, `error` v.s. `failure`


Trivial merge