about summary refs log tree commit diff
path: root/library/core/src/alloc/global.rs
AgeCommit message (Collapse)AuthorLines
2025-02-14core: Apply unsafe_op_in_unsafe_fnEric Huss-1/+1
2024-10-25library: consistently use American spelling for 'behavior'Ralf Jung-2/+2
2024-09-07restate GlobalAlloc method safety preconditions in terms of what the caller ↵Adam Sandberg Ericsson-15/+17
has to do for greater clarity
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+1
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-26Fix doc nitsJohn Arundel-4/+4
Many tiny changes to stdlib doc comments to make them consistent (for example "Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph breaks, backticks for monospace style, and other minor nits. https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
2024-03-19SeqCst->Relaxed in doc examples.Mara Bos-6/+3
SeqCst is unnecessary here.
2024-01-13libs: use `assert_unchecked` instead of intrinsicjoboet-1/+1
2023-03-01Fix docs for `alloc::realloc`overlookmotel-1/+2
Fixes #108546
2023-02-09Clarify `new_size` for realloc means bytesJubilee-4/+5
2022-11-18clarify that realloc refreshes pointer provenance even when the allocation ↵Ralf Jung-3/+5
remains in-place
2022-08-05cleanup code w/ pointers in std a littleMaybe Waffle-1/+1
2022-05-14Remove potentially misleading realloc parentheticalCAD97-5/+3
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
Alignments > 4k are not supported, https://github.com/rust-lang/rust/issues/70022 https://github.com/rust-lang/rust/issues/70144 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2021-07-20docs: GlobalAlloc: completely replace example with one that worksIan Jackson-11/+56
Since this is an example, this could really do with some review from someone familiar with unsafe stuff ! I made the example no longer `no_run` since it works for me. Fixes #81847 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
2021-02-28Try to clarify GlobalAlloc::realloc documentation comment.Vytautas Astrauskas-2/+5
2020-12-26Adjust markdown text to be more like the rendered textoli-5/+3
2020-12-26Update library/core/src/alloc/global.rsOli Scherer-1/+1
Co-authored-by: Ralf Jung <post@ralfj.de>
2020-12-04Update documentation to review commentsoli-6/+9
2020-11-19Inform tidy about the reason for the ignored rust codeoli-1/+1
2020-11-19Elaborate on side effectsoli-1/+2
2020-11-19Fix tidyoli-1/+1
2020-11-19Note that there are other optimizations than the one showcasedoli-0/+6
2020-11-19Document that heap allocations are not guaranteed to happen, even if ↵oli-0/+13
explicitly performed in the code
2020-07-27mv std libs to library/mark-0/+208