about summary refs log tree commit diff
path: root/library/core/src/alloc
AgeCommit message (Expand)AuthorLines
2023-03-26Auto merge of #105096 - LegionMammal978:copied-allocators, r=Amanieubors-3/+3
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
2022-04-11fix Layout struct member naming styleliangyongrui-5/+5
2022-04-09Rollup merge of #95361 - scottmcm:valid-align, r=Mark-SimulacrumDylan DPC-6/+5
2022-04-08Make non-power-of-two alignments a validity error in `Layout`Scott McMurray-6/+5
2022-04-02Rollup merge of #95354 - dtolnay:rustc_const_stable, r=lcnrDylan DPC-4/+4
2022-03-31add notes about alignment-altering reallocs to Allocator docsAutumn-0/+6
2022-03-31Adjust feature names that disagree on const stabilization versionDavid Tolnay-4/+4
2022-03-29Make the stdlib largely conform to strict provenance.Aria Beingessner-1/+1
2022-03-24Enforce that layout size fits in isize in LayoutCAD97-19/+34
2021-12-14Fix a bunch of typosFrank Steffahn-2/+2
2021-11-26Optimize `Layout::array`.Nicholas Nethercote-3/+11
2021-11-26Use unchecked construction in `Layout::pad_to_align`.Nicholas Nethercote-1/+3
2021-10-30Add #[must_use] to remaining core functionsJohn Kugelman-0/+4
2021-10-11Add #[must_use] to non-mutating verb methodsJohn Kugelman-0/+6
2021-10-11Rollup merge of #89753 - jkugelman:must-use-from_value-conversions, r=joshtri...Guillaume Gomez-0/+1
2021-10-10Add #[must_use] to from_value conversionsJohn Kugelman-0/+1
2021-10-10Add #[must_use] to core and std constructorsJohn Kugelman-0/+1
2021-07-30Consistent spelling of "adapter" in the standard libraryFrank Steffahn-2/+2
2021-07-29Fix may not to appropriate might not or must notAli Malik-1/+1
2021-07-21docs: GlobalAlloc: Make example only require 4096-aligned staticIan Jackson-3/+3
2021-07-20docs: GlobalAlloc: completely replace example with one that worksIan Jackson-11/+56
2021-06-24Use `#[non_exhaustive]` where appropriateJacob Pratt-10/+9
2021-03-15Fix const stability `since` versions.Oli Scherer-1/+1
2021-03-02Rollup merge of #80189 - jyn514:convert-primitives, r=poliorceticsYuki Okushi-1/+0
2021-02-28Try to clarify GlobalAlloc::realloc documentation comment.Vytautas Astrauskas-2/+5