about summary refs log tree commit diff
path: root/library/alloc/src/raw_vec/mod.rs
AgeCommit message (Collapse)AuthorLines
2025-09-04Rollup merge of #145750 - btj:drop-alloc-guard, r=tgross35Stuart Cook-25/+2
raw_vec.rs: Remove superfluous fn alloc_guard `alloc_guard` checks that its argument is at most `isize::MAX`, but it is called only with layout sizes, which are already guaranteed to be at most `isize::MAX`.
2025-09-03raw_vec.rs: Remove superfluous fn alloc_guardBart Jacobs-25/+2
It checks that its argument is at most isize::MAX, but it is called only with layout sizes, which are already guaranteed to be at most isize::MAX.
2025-08-26Fix typo in commentTobias Stoeckmann-1/+1
Turn "any heap allocators" into "any heap allocator".
2025-07-22Rename `tests/codegen` into `tests/codegen-llvm`Guillaume Gomez-1/+1
2025-05-05Simplify `Vec::as_non_null` implementation and make it `const`Vilim Lendvaj-1/+1
2025-03-26Swap usize -> ptr transmute for strict_pov APIJames Wainwright-2/+1
Removes some unsafety and reduces the number of `usize` -> `ptr` transmutes which might be helpful for CHERI-like targets in the future.
2025-03-26Pass `Alignment` for `RawVecInner::new_in`James Wainwright-4/+5
Encodes the safety constraint that `Unique`'s pointer must be non-zero into the API.
2025-03-07Add commentsbjorn3-0/+3
2025-03-07Fully test the alloc crate through alloctestsbjorn3-0/+1
For the tests that make use of internal implementation details, we include the module to test using #[path] in alloctests now.
2025-03-07Move all alloc integration tests to a new alloctests cratebjorn3-0/+818