| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-03-26 | Overhaul of the `AllocRef` trait to match allocator-wg's latest consens | Tim Diekmann | -1043/+0 | |
| 2020-03-22 | Auto merge of #69079 - CAD97:layout-of-ptr, r=RalfJung | bors | -0/+36 | |
| Allow calculating the layout behind a pointer There was some discussion around allowing this previously. This does make the requirement for raw pointers to have valid metadata exposed as part of the std API (as a safety invariant, not validity invariant), though I think this is not strictly necessarily required as of current. cc @rust-lang/wg-unsafe-code-guidelines Naming is hard; I picked the best "obvious" name I could come up with. If it's agreed that this is actually a desired API surface, I'll file a tracking issue and update the attributes. | ||||
| 2020-03-21 | Allow calculating the layout behind a pointer | CAD97 | -0/+36 | |
| Let align/size_of_of_val intrinsics work on ptrs | ||||
| 2020-03-08 | Allow ZSTs in `AllocRef` | Tim Diekmann | -43/+13 | |
| 2020-03-07 | Update alloc.rs | Tim Diekmann | -2/+2 | |
| 2020-03-07 | Add `Layout::dangling()` to return a well-aligned `NonNull<u8>` | Tim Diekmann | -0/+12 | |
| 2020-03-03 | Remove `usable_size` APIs | Tim Diekmann | -224/+80 | |
| 2020-02-12 | Rollup merge of #69027 - TimDiekmann:zeroed-alloc, r=Amanieu | Yuki Okushi | -0/+137 | |
| Add missing `_zeroed` varants to `AllocRef` The majority of the allocator wg has decided to add the missing `_zeroed` variants to `AllocRef`: > these should be added since they can be efficiently implemented with the `mremap` system call on Linux. `mremap` allows you to move/grow/shrink a memory mapping, and any new pages added for growth are guaranteed to be zeroed. > > If `AllocRef` does not have these methods then the user will have to manually write zeroes to the added memory since the API makes no guarantees on their contents. For the full discussion please see https://github.com/rust-lang/wg-allocators/issues/14. This PR provides default implementations for `realloc_zeroed`, `alloc_excess_zeroed`, `realloc_excess_zeroed`, and `grow_in_place_zeroed`. r? @Amanieu | ||||
| 2020-02-10 | Add missing `_zeroed` varants to `AllocRef` | Tim Diekmann | -0/+137 | |
| 2020-02-10 | Remove common usage pattern from `AllocRef` | Tim Diekmann | -199/+2 | |
| 2020-02-01 | Remove `Alloc` in favor of `AllocRef` | Tim Diekmann | -7/+0 | |
| `AllocRef` was reexported as `Alloc` in order to not break toolstate in the week before the next stable release. | ||||
| 2020-01-27 | Rename `Alloc` to `AllocRef` | Tim Diekmann | -11/+26 | |
| 2020-01-20 | Added minor clarification to specification of realloc. | Matthew Parkinson | -1/+2 | |
| The `layout` for the returned allocation of a `realloc` is only implicitly specified. This change makes it explicit. | ||||
| 2020-01-11 | Constify alloc::Layout | Lukas Lueg | -4/+8 | |
| Tracking issue #67521, Layout::new in #66254 | ||||
| 2020-01-09 | Mark Layout::new as const stable | CAD97 | -0/+1 | |
| 2020-01-09 | Make Layout::new const | Christopher Durham | -3/+2 | |
| 2019-12-22 | Format the world | Mark Rousskov | -96/+71 | |
| 2019-12-18 | Propagate cfg bootstrap | Mark Rousskov | -1/+1 | |
| 2019-12-13 | Require stable/unstable annotations for the constness of all stable ↵ | Oliver Scherer | -0/+1 | |
| functions with a `const` modifier | ||||
| 2019-12-11 | Rollup merge of #67174 - kraai:remove-checked_add, r=rkruppe | Mazdak Farrokhzad | -2/+5 | |
| Remove `checked_add` in `Layout::repeat` | ||||
| 2019-12-11 | Rollup merge of #67154 - kraai:alloc-typos, r=Dylan-DPC | Yuki Okushi | -6/+6 | |
| Fix typos in src/libcore/alloc.rs docs | ||||
| 2019-12-09 | Rollup merge of #67155 - kraai:move-instead-of-binding-to-reference, r=cramertj | Tyler Mandry | -6/+6 | |
| Move `Layout`s instead of binding by reference | ||||
| 2019-12-09 | Remove `checked_add` in `Layout::repeat` | Matthew Kraai | -2/+5 | |
| 2019-12-08 | Move `Layout`s instead of binding by reference | Matthew Kraai | -6/+6 | |
| 2019-12-08 | Change "attributes" to "attribute" in `Alloc`'s docs | Matthew Kraai | -1/+1 | |
| 2019-12-08 | Change "`alloc`/`realloc`" to "`realloc/dealloc`" | Matthew Kraai | -3/+3 | |
| 2019-12-08 | Add "this" to `GlobalAlloc::alloc`'s docs | Matthew Kraai | -1/+1 | |
| 2019-12-08 | Change "though" to "through" in `Alloc`'s docs | Matthew Kraai | -1/+1 | |
| 2019-12-08 | Change "result" to "resulting" in `Layout::extend`'s docs | Matthew Kraai | -1/+1 | |
| 2019-12-07 | Simplify `Layout::extend_packed` | Matthew Kraai | -2/+1 | |
| 2019-12-06 | Rollup merge of #67092 - kraai:us-to-is, r=jonas-schievink | Mazdak Farrokhzad | -2/+2 | |
| Fix comment typos in src/libcore/alloc.rs | ||||
| 2019-12-06 | Change "wth" to "with" in `Layout::padding_needed_for` comment | Matthew Kraai | -1/+1 | |
| 2019-12-06 | Change "us" to "is" in Layout::for_value comment | Matthew Kraai | -1/+1 | |
| 2019-12-06 | Change "either" to "any" in Layout::from_size_align's docs | Matthew Kraai | -1/+1 | |
| 2019-11-25 | Clarify Layout::pad_to_align safety comment | Christopher Durham | -1/+1 | |
| 2019-11-25 | Remove unsafe in Layout::pad_to_align | Christopher Durham | -3/+1 | |
| 2019-11-09 | Fix typo | Christopher Durham | -1/+1 | |
| Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> | ||||
| 2019-11-09 | Fix Layout::pad_to_align type mismatch | Christopher Durham | -2/+3 | |
| 2019-11-09 | Layout::pad_to_align is infallible | Christopher Durham | -5/+7 | |
| 2019-11-06 | Have tidy ensure that we document all `unsafe` blocks in libcore | Oliver Scherer | -0/+2 | |
| 2019-07-18 | Fix clippy::clone_on_copy warnings | Mateusz Mikuła | -2/+2 | |
| 2019-07-09 | Add missing links for CannotReallocInPlace type | Guillaume Gomez | -2/+5 | |
| 2019-05-19 | Rollup merge of #60947 - blkerby:global_alloc_typo, r=jonas-schievink | Mazdak Farrokhzad | -2/+2 | |
| Fix typos in docs of GlobalAlloc | ||||
| 2019-05-18 | Fix typos in docs of GlobalAlloc | Brent Kerby | -2/+2 | |
| 2019-05-14 | Mark core::alloc::Layout::from_size_align_unchecked const | Richard Wiedenhöft | -1/+1 | |
| 2019-04-19 | libcore: deny more... | Mazdak Farrokhzad | -3/+3 | |
| 2019-04-18 | libcore => 2018 | Taiki Endo | -6/+6 | |
| 2019-02-25 | heading # Unsafety => # Safety in stdlib docs. | Mazdak Farrokhzad | -2/+2 | |
| 2019-02-10 | tests: doc comments | Alexander Regueiro | -1/+1 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
