]> git.lizzy.rs Git - rust.git/commit
Rename OOM to allocation error
authorSimon Sapin <simon.sapin@exyr.org>
Wed, 13 Jun 2018 22:32:30 +0000 (00:32 +0200)
committerSimon Sapin <simon.sapin@exyr.org>
Mon, 18 Jun 2018 19:41:24 +0000 (21:41 +0200)
commit2b789bd0570983e82533f9ed30c80312ac334694
treea1bc074ebb134737b1b670927bb9b4105bdd8f61
parentb36917b33104dc0af4d26d53899b7cd064a40b22
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: `alloc` v.s. `allocator`, `error` v.s. `failure`
src/liballoc/alloc.rs
src/liballoc/arc.rs
src/liballoc/raw_vec.rs
src/liballoc/rc.rs
src/libcore/alloc.rs
src/libstd/alloc.rs
src/libstd/collections/hash/table.rs
src/test/run-pass/allocator-alloc-one.rs
src/test/run-pass/realloc-16687.rs
src/test/run-pass/regions-mock-codegen.rs