| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-03-08 | Allow ZSTs in `AllocRef` | Tim Diekmann | -20/+18 | |
| 2020-03-03 | Remove `usable_size` APIs | Tim Diekmann | -8/+13 | |
| 2020-02-10 | Remove common usage pattern from `AllocRef` | Tim Diekmann | -6/+7 | |
| 2020-01-27 | Rename `Alloc` to `AllocRef` | Tim Diekmann | -8/+8 | |
| 2019-12-22 | Format the world | Mark Rousskov | -71/+55 | |
| 2019-12-21 | Require issue = "none" over issue = "0" in unstable attributes | Ross MacArthur | -1/+1 | |
| 2019-12-18 | no need to bootstrap | Mark Mansi | -8/+1 | |
| 2019-12-18 | add fixme | Mark Mansi | -0/+1 | |
| 2019-12-18 | fix import | Mark Mansi | -1/+1 | |
| 2019-12-18 | use usize::MAX instead of !0 | Mark Mansi | -1/+1 | |
| 2019-12-18 | remove a bit more hackery | Mark Mansi | -41/+8 | |
| 2019-12-18 | Remove a const-if-hack in RawVec | Mark Mansi | -8/+32 | |
| 2019-09-16 | Const-stabilize `Vec::new`. | Mazdak Farrokhzad | -1/+26 | |
| 2019-09-14 | Update src/liballoc/raw_vec.rs | Alexander Regueiro | -1/+1 | |
| Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> | ||||
| 2019-09-06 | A few cosmetic improvements to code & comments in liballoc and libcore | Alexander Regueiro | -76/+74 | |
| 2019-08-16 | Add the Layout of the failed allocation to TryReserveError::AllocError | Simon Sapin | -9/+11 | |
| … and add a separately-unstable field to force non-exhaustive matching (`#[non_exhaustive]` is no implemented yet on enum variants) so that we have the option to later expose the allocator’s error value. CC https://github.com/rust-lang/wg-allocators/issues/23 | ||||
| 2019-08-16 | Rename CollectionAllocError to TryReserveError | Simon Sapin | -6/+6 | |
| 2019-08-02 | liballoc: Unconfigure tests during normal build | Vadim Petrochenkov | -79/+3 | |
| Remove additional libcore-like restrictions from liballoc, turns out the testing works ok if the tests are a part of liballoc itself. | ||||
| 2019-07-25 | Auto merge of #60340 - mgeier:cap-vs-capacity, r=alexcrichton | bors | -59/+60 | |
| Rename .cap() methods to .capacity() As mentioned in #60316, there are a few `.cap()` methods, which seem out-of-place because such methods are called `.capacity()` in the rest of the code. This PR renames them to `.capacity()` but leaves `RawVec::cap()` in there for backwards compatibility. I didn't try to mark the old version as "deprecated", because I guess this would cause too much noise. | ||||
| 2019-06-25 | Remove RawVec::cap() | Matthias Geier | -6/+0 | |
| As suggested in https://github.com/rust-lang/rust/pull/60340#issuecomment-493681032 | ||||
| 2019-05-27 | avoid materializing unintialized Boxes in RawVec | Aleksey Kladov | -4/+6 | |
| 2019-04-27 | Rename .cap() methods to .capacity() | Matthias Geier | -59/+66 | |
| ... but leave the old names in there for backwards compatibility. | ||||
| 2019-04-12 | Stabilize the `alloc` crate. | Simon Sapin | -2/+2 | |
| This implements RFC 2480: * https://github.com/rust-lang/rfcs/pull/2480 * https://github.com/rust-lang/rfcs/blob/master/text/2480-liballoc.md Closes https://github.com/rust-lang/rust/issues/27783 | ||||
| 2019-02-10 | libs: doc comments | Alexander Regueiro | -2/+2 | |
| 2019-02-03 | liballoc: revert nested imports style changes. | Mazdak Farrokhzad | -13/+9 | |
| 2019-02-02 | liballoc: apply uniform_paths. | Mazdak Farrokhzad | -2/+2 | |
| 2019-02-02 | liballoc: adjust abolute imports + more import fixes. | Mazdak Farrokhzad | -1/+1 | |
| 2019-02-02 | liballoc: refactor & fix some imports. | Mazdak Farrokhzad | -11/+14 | |
| 2019-02-02 | liballoc: cargo check passes on 2018 | Mazdak Farrokhzad | -5/+5 | |
| 2019-01-08 | RawVec doesn't always abort on allocation errors | Jonathan Behrens | -1/+1 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-07 | Various minor/cosmetic improvements to code | Alexander Regueiro | -1/+1 | |
| 2018-11-13 | fix various typos in doc comments | Andy Russell | -1/+1 | |
| 2018-08-21 | Rollup merge of #53329 - frewsxcv:frewsxcv-ptr-add-sub, r=RalfJung | kennytm | -2/+2 | |
| Replace usages of ptr::offset with ptr::{add,sub}. Rust provides these helper methods – so let's use them! | ||||
| 2018-08-20 | Replace usages of ptr::offset with ptr::{add,sub}. | Corey Farwell | -2/+2 | |
| 2018-08-19 | Fix typos found by codespell. | Matthias Krüger | -1/+1 | |
| 2018-06-29 | Move core::alloc::CollectionAllocErr to alloc::collections | Simon Sapin | -2/+2 | |
| 2018-06-29 | Make raw_vec perma-unstable and hidden | Simon Sapin | -2/+5 | |
| 2018-06-18 | Rename OOM to allocation error | Simon Sapin | -6/+10 | |
| 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` | ||||
| 2018-06-11 | Remove some unneeded casts | Simon Sapin | -3/+3 | |
| 2018-06-11 | Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAlloc | Mike Hommey | -10/+9 | |
| 2018-05-30 | Pass a `Layout` to `oom` | Mike Hommey | -74/+82 | |
| As discussed in https://github.com/rust-lang/rust/issues/49668#issuecomment-384893456 and subsequent, there are use-cases where the OOM handler needs to know the size of the allocation that failed. The alignment might also be a cause for allocation failure, so providing it as well can be useful. | ||||
| 2018-05-10 | Restore RawVec::reserve* documentation | Mike Hommey | -56/+57 | |
| When the RawVec::try_reserve* methods were added, they took the place of the ::reserve* methods in the source file, and new ::reserve* methods wrapping the new try_reserve* methods were created. But the documentation didn't move along, such that: - reserve_* methods are barely documented. - try_reserve_* methods have unmodified documentation from reserve_*, such that their documentation indicate they are panicking/aborting. This moves the documentation back to the right methods, with a placeholder documentation for the try_reserve* methods. | ||||
| 2018-05-08 | Cleanup a `use` in a raw_vec test | Mike Hommey | -1/+1 | |
| `allocator` is deprecated in favor of `alloc`, and `Alloc` is already imported through `super::*`. | ||||
| 2018-04-29 | heh, logic is hard | Mark Mansi | -1/+1 | |
| 2018-04-29 | use const trick | Mark Mansi | -23/+6 | |
| 2018-04-25 | make RawVec::empty const | Mark Mansi | -1/+4 | |
| 2018-04-25 | Make Vec::new const | Mark Mansi | -0/+16 | |
| 2018-04-22 | Remove Alloc::oom | Steven Fackler | -7/+7 | |
| 2018-04-16 | Auto merge of #49488 - alexcrichton:small-wasm-panic, r=sfackler | bors | -8/+15 | |
| std: Minimize size of panicking on wasm This commit applies a few code size optimizations for the wasm target to the standard library, namely around panics. We notably know that in most configurations it's impossible for us to print anything in wasm32-unknown-unknown so we can skip larger portions of panicking that are otherwise simply informative. This allows us to get quite a nice size reduction. Finally we can also tweak where the allocation happens for the `Box<Any>` that we panic with. By only allocating once unwinding starts we can reduce the size of a panicking wasm module from 44k to 350 bytes. | ||||
