summary refs log tree commit diff
path: root/src/libcore/alloc.rs
AgeCommit message (Collapse)AuthorLines
2019-12-13Require stable/unstable annotations for the constness of all stable ↵Oliver Scherer-0/+1
functions with a `const` modifier
2019-12-11Rollup merge of #67174 - kraai:remove-checked_add, r=rkruppeMazdak Farrokhzad-2/+5
Remove `checked_add` in `Layout::repeat`
2019-12-11Rollup merge of #67154 - kraai:alloc-typos, r=Dylan-DPCYuki Okushi-6/+6
Fix typos in src/libcore/alloc.rs docs
2019-12-09Rollup merge of #67155 - kraai:move-instead-of-binding-to-reference, r=cramertjTyler Mandry-6/+6
Move `Layout`s instead of binding by reference
2019-12-09Remove `checked_add` in `Layout::repeat`Matthew Kraai-2/+5
2019-12-08Move `Layout`s instead of binding by referenceMatthew Kraai-6/+6
2019-12-08Change "attributes" to "attribute" in `Alloc`'s docsMatthew Kraai-1/+1
2019-12-08Change "`alloc`/`realloc`" to "`realloc/dealloc`"Matthew Kraai-3/+3
2019-12-08Add "this" to `GlobalAlloc::alloc`'s docsMatthew Kraai-1/+1
2019-12-08Change "though" to "through" in `Alloc`'s docsMatthew Kraai-1/+1
2019-12-08Change "result" to "resulting" in `Layout::extend`'s docsMatthew Kraai-1/+1
2019-12-07Simplify `Layout::extend_packed`Matthew Kraai-2/+1
2019-12-06Rollup merge of #67092 - kraai:us-to-is, r=jonas-schievinkMazdak Farrokhzad-2/+2
Fix comment typos in src/libcore/alloc.rs
2019-12-06Change "wth" to "with" in `Layout::padding_needed_for` commentMatthew Kraai-1/+1
2019-12-06Change "us" to "is" in Layout::for_value commentMatthew Kraai-1/+1
2019-12-06Change "either" to "any" in Layout::from_size_align's docsMatthew Kraai-1/+1
2019-11-25Clarify Layout::pad_to_align safety commentChristopher Durham-1/+1
2019-11-25Remove unsafe in Layout::pad_to_alignChristopher Durham-3/+1
2019-11-09Fix typoChristopher Durham-1/+1
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-11-09Fix Layout::pad_to_align type mismatchChristopher Durham-2/+3
2019-11-09Layout::pad_to_align is infallibleChristopher Durham-5/+7
2019-11-06Have tidy ensure that we document all `unsafe` blocks in libcoreOliver Scherer-0/+2
2019-07-18Fix clippy::clone_on_copy warningsMateusz Mikuła-2/+2
2019-07-09Add missing links for CannotReallocInPlace typeGuillaume Gomez-2/+5
2019-05-19Rollup merge of #60947 - blkerby:global_alloc_typo, r=jonas-schievinkMazdak Farrokhzad-2/+2
Fix typos in docs of GlobalAlloc
2019-05-18Fix typos in docs of GlobalAllocBrent Kerby-2/+2
2019-05-14Mark core::alloc::Layout::from_size_align_unchecked constRichard Wiedenhöft-1/+1
2019-04-19libcore: deny more...Mazdak Farrokhzad-3/+3
2019-04-18libcore => 2018Taiki Endo-6/+6
2019-02-25heading # Unsafety => # Safety in stdlib docs.Mazdak Farrokhzad-2/+2
2019-02-10tests: doc commentsAlexander Regueiro-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-12/+12
2018-11-11Rollup merge of #55844 - waywardmonkeys:typo-fixes, r=varkorPietro Albini-2/+2
Fix documentation typos.
2018-11-10Fix documentation typos.Bruce Mitchener-2/+2
2018-11-08Fix Rc/Arc allocation layoutMurarth-0/+17
* Rounds allocation layout up to a multiple of alignment * Adds a convenience method `Layout::pad_to_align` to perform rounding
2018-11-06Add a tracking issue for extra Layout methodsAmanieu d'Antras-7/+7
2018-11-06API changes as discussed in the commentsAmanieu d'Antras-17/+6
2018-11-06Add a comment about how Layout::extend matches the C struct layoutAmanieu d'Antras-0/+3
2018-10-23fix typos in various placesMatthias Krüger-1/+1
2018-08-04Remove explicit returns where unnecessaryljedrz-5/+5
2018-08-01Switch to bootstrapping from 1.29 betaMark Rousskov-5/+1
2018-07-09Implement #[alloc_error_handler]Simon Sapin-0/+1
This to-be-stable attribute is equivalent to `#[lang = "oom"]`. It is required when using the alloc crate without the std crate. It is called by `handle_alloc_error`, which is in turned called by "infallible" allocations APIs such as `Vec::push`.
2018-06-29Move core::alloc::CollectionAllocErr to alloc::collectionsSimon Sapin-28/+0
2018-06-27Document that Layout::from_size_align does not allow align=0Simon Sapin-0/+2
This was already implied since zero is not a power of two, but maybe worth pointing out.
2018-06-18Rename OOM to allocation errorSimon Sapin-24/+24
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-11More alloc docs tweaksSimon Sapin-1/+23
2018-06-11Alloc docs teaksSimon Sapin-5/+0
2018-06-11Stablize the GlobalAlloc traitSimon Sapin-1/+5
Fixes https://github.com/rust-lang/rust/issues/49668
2018-06-11Stabilize alloc::Layout (with only some of its methods)Simon Sapin-9/+9