summary refs log tree commit diff
path: root/library/core/src/alloc
AgeCommit message (Expand)AuthorLines
2024-10-10Fixing rustDoc for LayoutError.Johnathan W-1/+2
2024-09-29Rollup merge of #123932 - adamse:global-alloc-safety-preconds-positive, r=tgr...Matthias Krüger-15/+17
2024-09-17Take more advantage of the `isize::MAX` limit in `Layout`Scott McMurray-56/+105
2024-09-07restate GlobalAlloc method safety preconditions in terms of what the caller h...Adam Sandberg Ericsson-15/+17
2024-08-20Try to golf down the amount of code in LayoutBen Kimock-8/+3
2024-08-19Add a precondition check for Layout::from_size_align_uncheckedBen Kimock-5/+27
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+2
2024-07-26Fix doc nitsJohn Arundel-6/+6
2024-07-10size_of_val_raw: for length 0 this is safe to callRalf Jung-0/+2
2024-03-25alloc::Layout: explicitly document size invariant on the type levelRalf Jung-1/+3
2024-03-19SeqCst->Relaxed in doc examples.Mara Bos-6/+3
2024-02-21rename ptr::invalid -> ptr::without_provenanceRalf Jung-1/+1
2024-02-13Add information about allocation lifetime to Allocator::allocateAmanieu d'Antras-0/+4
2024-02-12Clarify the lifetimes of allocations returned by the `Allocator` traitAmanieu d'Antras-2/+4
2024-01-13libs: use `assert_unchecked` instead of intrinsicjoboet-1/+1
2023-11-23Indicate that multiplication in Layout::array cannot overflowMark Rousskov-1/+5
2023-10-12Update library/core/src/alloc/layout.rsJoshua Liebow-Feeser-1/+1
2023-09-07Guarantee that Layout::align returns a non-zero power of twoJoshua Liebow-Feeser-0/+2
2023-05-30Rollup merge of #107916 - reez12g:issue-107040, r=AmanieuNilstrieb-2/+3
2023-05-30fix comment on Allocator traitreez12g-2/+3
2023-05-27Rollup merge of #108630 - overlookmotel:realloc-docs-fix, r=AmanieuMatthias Krüger-1/+2
2023-04-16core is now compilableDeadbeef-10/+5
2023-04-16rm const traits in libcoreDeadbeef-1/+0
2023-03-26Auto merge of #105096 - LegionMammal978:copied-allocators, r=Amanieubors-3/+3
2023-03-01Fix docs for `alloc::realloc`overlookmotel-1/+2
2023-02-09Clarify `new_size` for realloc means bytesJubilee-4/+5
2022-11-30Clarify that copied allocators must behave the sameLegionMammal978-3/+3
2022-11-22Rollup merge of #102207 - CraftSpider:const-layout, r=scottmcmManish Goregaokar-11/+25
2022-11-20Use ? instead of matchRune Tynan-4/+2
2022-11-20Update with derive_constRune Tynan-1/+4
2022-11-20constify remaining layout methodsRune Tynan-10/+23
2022-11-18clarify that realloc refreshes pointer provenance even when the allocation re...Ralf Jung-7/+11
2022-11-11Remove the old `ValidAlign` nameScott McMurray-14/+14
2022-10-10Rollup merge of #102072 - scottmcm:ptr-alignment-type, r=thomccYuki Okushi-0/+3
2022-09-26remove cfg(bootstrap)Pietro Albini-4/+0
2022-09-21Add `rustc_allow_const_fn_unstable` annotations to pre-existing `Layout` methodsScott McMurray-0/+3
2022-09-16Add `const_trait` to `Allocator`Deadbeef-0/+1
2022-08-22Move error trait into coreJane Losare-Lusby-0/+16
2022-08-12Rollup merge of #100030 - WaffleLapkin:nice_pointer_sis, r=scottmcmDylan DPC-1/+1
2022-08-05cleanup code w/ pointers in std a littleMaybe Waffle-1/+1
2022-07-13Re-optimize `Layout::array`Scott McMurray-9/+34
2022-07-11Remove duplication of layout size checkChristopher Durham-16/+11
2022-07-10Take advantage of known-valid-align in layout.rsChristopher Durham-14/+27
2022-07-10Auto merge of #95295 - CAD97:layout-isize, r=scottmcmbors-20/+14
2022-06-30nit Christopher Durham-1/+1
2022-06-29Revert isize::MAX changes to Layout helpersChristopher Durham-37/+16
2022-05-28Rollup merge of #97034 - fee1-dead-contrib:layout-hash, r=dtolnayDylan DPC-1/+1
2022-05-14Remove potentially misleading realloc parentheticalCAD97-9/+5
2022-05-14Implement `Hash` for `core::alloc::Layout`Deadbeef-1/+1
2022-04-14Remove use of `#[rustc_deprecated]`Jacob Pratt-4/+4