summary refs log tree commit diff
path: root/library/alloc/src/sync.rs
AgeCommit message (Collapse)AuthorLines
2020-09-28Rename AllocErr to AllocErrorJacob Hughes-2/+2
2020-09-02Revert change to MaybeUninit until rustdoc bugs are fixedJoshua Nelson-4/+4
https://github.com/rust-lang/rust/issues/76106
2020-09-02Convert many files to intra-doc linksJoshua Nelson-6/+6
- Use intra-doc links for `std::io` in `std::fs` - Use intra-doc links for File::read in unix/ext/fs.rs - Remove explicit intra-doc links for `true` in `net/addr.rs` - Use intra-doc links in alloc/src/sync.rs - Use intra-doc links in src/ascii.rs - Switch to intra-doc links in alloc/rc.rs - Use intra-doc links in core/pin.rs - Use intra-doc links in std/prelude - Use shorter links in `std/fs.rs` `io` is already in scope.
2020-08-28Add missing hyphenCamelid-1/+1
reference counted pointer -> reference-counted pointer
2020-08-24Auto merge of #75505 - Dylan-DPC:feature/arc_new, r=KodrAusbors-3/+80
Add Arc::new_cyclic Rework of #72443 References #75861 cc @Diggsey @RalfJung r? @KodrAus
2020-08-24add issue numberDylan DPC-1/+1
2020-08-22Auto merge of #75171 - amosonn:new_zeroed_slice, r=Amanieubors-15/+58
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-21Apply suggestions from code reviewLeSeulArtichaut-2/+2
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-08-21Use intra-doc-links in `alloc`LeSeulArtichaut-76/+43
2020-08-15tidy upDPC-23/+23
2020-08-13Add Arc::new_cyclicDPC-3/+80
2020-08-05Add {Box,Rc,Arc}::new_zeroed_sliceAmos Onn-0/+34
2020-08-05Use alloc_zeroed in {Rc,Arc}::new_zeroedAmos Onn-15/+24
2020-08-04Replace `Memoryblock` with `NonNull<[u8]>`Tim Diekmann-3/+3
2020-08-03Merge branch 'master' into remove-in-place-allocTim Diekmann-35/+12
2020-08-02fix typosliuzhenyu-1/+1
2020-07-30Rollup merge of #74782 - vorner:weak-into-raw-cnt-doc, r=dtolnayManish Goregaokar-11/+11
Don't use "weak count" around Weak::from_raw_ptr As `Rc/Arc::weak_count` returns 0 when having no strong counts, this could be confusing and it's better to avoid using that completely. Closes #73840.
2020-07-29Remove deprecated unstable `{Box,Rc,Arc}::into_raw_non_null` functionsSimon Sapin-23/+0
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-4/+2
Fix docs
2020-07-28Don't use "weak count" around Weak::from_raw_ptrMichal 'vorner' Vaner-11/+11
As `Rc/Arc::weak_count` returns 0 when having no strong counts, this could be confusing and it's better to avoid using that completely. Closes #73840.
2020-07-27mv std libs to library/mark-0/+2294