summary refs log tree commit diff
path: root/library/alloc/src/boxed.rs
AgeCommit message (Collapse)AuthorLines
2020-10-27fix Box::into_uniqueRalf Jung-7/+2
2020-10-23Rename `Box::alloc` to `Box::alloc_ref`Tim Diekmann-2/+2
2020-10-16Merge branch 'master' into box-allocTim Diekmann-1/+1
2020-10-15Fix typo in documentationstrct-1/+1
2020-10-07Support custom allocators in `Box`Tim Diekmann-110/+380
Remove `Box::leak_with_alloc` Add leak-test for box with allocator Rename `AllocErr` to `AllocError` in leak-test Add `Box::alloc` and adjust examples to use the new API
2020-09-01Use intra-doc links for `MaybeUninit` in `boxed.rs`Joshua Nelson-4/+4
2020-08-22Auto merge of #75171 - amosonn:new_zeroed_slice, r=Amanieubors-0/+23
New zeroed slice Add to #63291 the methods ```rust impl<T> Box<[T]> { pub fn new_zeroed_slice(len: usize) -> Box<[MaybeUninit<T>]> {…} } impl<T> Rc<[T]> { pub fn new_zeroed_slice(len: usize) -> Rc<[MaybeUninit<T>]> {…} } impl<T> Arc<[T]> { pub fn new_zeroed_slice(len: usize) -> Arc<[MaybeUninit<T>]> {…} } ``` as suggested in https://github.com/rust-lang/rust/issues/63291#issuecomment-605511675 . Also optimize `{Rc, Arc}::new_zeroed` to use `alloc_zeroed`, otherwise they are no more efficient than using `new_uninit` and zeroing the memory manually (which was the original implementation).
2020-08-21Use intra-doc-links in `alloc`LeSeulArtichaut-16/+10
2020-08-05Add {Box,Rc,Arc}::new_zeroed_sliceAmos Onn-0/+23
2020-08-04Replace `Memoryblock` with `NonNull<[u8]>`Tim Diekmann-3/+1
2020-08-03Merge branch 'master' into remove-in-place-allocTim Diekmann-45/+1
2020-07-29Remove deprecated unstable `{Box,Rc,Arc}::into_raw_non_null` functionsSimon Sapin-45/+1
FCP: https://github.com/rust-lang/rust/issues/47336#issuecomment-619369613
2020-07-28Remove in-place allocation and revert to separate methods for zeroed allocationsTim Diekmann-7/+4
Fix docs
2020-07-27mv std libs to library/mark-0/+1200