about summary refs log tree commit diff
path: root/library/alloc/src/raw_vec
AgeCommit message (Collapse)AuthorLines
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
2025-03-06library: Use size_of from the prelude instead of importedThalia Archibald-2/+1
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2024-08-09Polymorphize RawVecBen Kimock-19/+8
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-03-01try_with_capacity for RawVecKornel-3/+4
2023-12-11add more niches to rawvecThe 8472-0/+9
2021-11-26Add a unit test for zero-sized types in `RawVec`.Nicholas Nethercote-0/+84
Because there's some subtle behaviour specific to zero-sized types and it's currently not well tested.
2020-12-04 Rename `AllocRef` to `Allocator` and `(de)alloc` to `(de)allocate`Tim Diekmann-5/+5
2020-09-28Rename AllocErr to AllocErrorJacob Hughes-3/+3
2020-09-22removing &mut self for other methods of AllocRefblitzerr-1/+1
2020-09-21replaced cell::update with cell::[g|s]etblitzerr-5/+1
2020-09-21Added feature flag to use cell_updateblitzerr-0/+4
2020-09-21Changing the alloc() to accept &self instead of &mut selfblitzerr-7/+8
2020-08-04Replace `Memoryblock` with `NonNull<[u8]>`Tim Diekmann-1/+1
2020-07-28Remove in-place allocation and revert to separate methods for zeroed allocationsTim Diekmann-2/+2
Fix docs
2020-07-27mv std libs to library/mark-0/+78