| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-11-21 | Make Weak::weak_count() return zero when no strong refs remain | Bryan Donlan | -23/+13 | |
| 2019-11-21 | Stabilize `std::{rc,sync}::Weak::{weak_count, strong_count}` | Bryan Donlan | -2/+2 | |
| Closes: #57977 | ||||
| 2019-11-09 | Remove Layout::pad_to_unlign unwrap | Christopher Durham | -1/+1 | |
| 2019-11-05 | Reverted PhantomData in LinkedList, fixed PhantomData markers in Rc and Arc | Oleg Nosov | -1/+1 | |
| 2019-11-05 | alloc: Add new_zeroed() versions like new_uninit(). | Emilio Cobos Álvarez | -0/+29 | |
| MaybeUninit has both uninit() and zeroed(), it seems reasonable to have the same surface on Box/Rc/Arc. Needs tests. | ||||
| 2019-10-22 | Apply clippy::needless_return suggestions | Mateusz Mikuła | -1/+1 | |
| 2019-10-19 | do all the same edits with Arc | Ralf Jung | -51/+65 | |
| 2019-10-01 | Remove unneeded `fn main` blocks from docs | Lzu Tao | -5/+3 | |
| 2019-09-14 | Rollup merge of #61797 - Thomasdezeeuw:stablise-weak_ptr_eq, r=RalfJung | Mazdak Farrokhzad | -6/+4 | |
| Stabilise weak_ptr_eq Implemented in #55987. Closes #55981. | ||||
| 2019-09-06 | A few cosmetic improvements to code & comments in liballoc and libcore | Alexander Regueiro | -1/+1 | |
| 2019-08-25 | Update {rc, sync}::Weak::ptr_eq doc about comparing Weak::new | Thomas de Zeeuw | -3/+3 | |
| 2019-08-25 | Stabilise weak_ptr_eq | Thomas de Zeeuw | -3/+1 | |
| 2019-08-19 | Rollup merge of #63252 - nrc:arc-doc, r=alexcrichton | Mazdak Farrokhzad | -4/+0 | |
| Remove recommendation about idiomatic syntax for Arc::clone I believe we should not make this recommendation. I don't want to argue that `Arc::clone` is less idiomatic than `arc.clone`, but that the choice is not clear cut and that we should not be making this kind of call in the docs. The `.clone()` form has advantages too: it is more succinct, it is more likely to be understood by beginners, and it is more uniform with other `clone` calls, indeed with most other method calls. Whichever approach is better, I think that this discussion belongs in a style guide or textbook, rather than the library docs. We don't talk much about idiomatic code in the docs, this place is pretty exceptional. The recommendation is also not followed in this repo. It is hard to figure out how many calls there are of the `.clone()` form, but there are 1550 uses of `Arc` and only 65 uses of `Arc::clone`. The recommendation has existed for over two years. The recommendation was added in https://github.com/rust-lang/rust/pull/42137, as a result of https://github.com/rust-lang/rfcs/pull/1954. However, note that that RFC was closed because it was not necessary to change the docs (the original RFC proposed a new function instead). So I don't think an RFC is necessary here (and I'm not trying to re-litigate the discussion on that RFC (which favoured `Arc::clone` as idiomatic) in any case). cc @nical (who added the docs in the first place; sorry :-) ) r? @alexcrichton (or someone else on @rust-lang/libs ) | ||||
| 2019-08-17 | Rename private helper method allocate_for_unsized to allocate_for_layout | Simon Sapin | -5/+5 | |
| 2019-08-17 | Doc nits | Simon Sapin | -5/+5 | |
| Co-Authored-By: Ralf Jung <post@ralfj.de> | ||||
| 2019-08-16 | Relax the safety condition for get_mut_unchecked | Simon Sapin | -2/+4 | |
| 2019-08-16 | Reuse more internal Rc and Arc methods | Simon Sapin | -35/+7 | |
| 2019-08-16 | Add a comment on the usage of Layout::new::<RcBox<()>>() | Simon Sapin | -0/+2 | |
| 2019-08-16 | Add tracking issue numbers | Simon Sapin | -5/+5 | |
| 2019-08-16 | Use ManuallyDrop instead of mem::forget | Simon Sapin | -6/+2 | |
| Per https://github.com/rust-lang/rust/pull/62451#discussion_r303197278 | ||||
| 2019-08-16 | Fix intra-rustdoc links | Simon Sapin | -1/+5 | |
| 2019-08-16 | Move constructors of boxed/rc’ed slices to matching `impl` blocks | Simon Sapin | -45/+47 | |
| 2019-08-16 | Add new_uninit_slice and assume_init on Box, Rc, and Arc of [T] | Simon Sapin | -5/+93 | |
| 2019-08-16 | Add new_uninit and assume_init on Box, Rc, and Arc | Simon Sapin | -0/+81 | |
| 2019-08-16 | Add Rc::get_mut_unchecked, Arc::get_mut_unchecked | Simon Sapin | -1/+30 | |
| 2019-08-05 | Add implementations for converting boxed slices into boxed arrays | Jake Goulding | -1/+18 | |
| This mirrors the implementations of reference slices into arrays. | ||||
| 2019-08-04 | Remove recommendation about idiomatic syntax for Arc::Clone | Nick Cameron | -4/+0 | |
| Signed-off-by: Nick Cameron <nrc@ncameron.org> | ||||
| 2019-08-02 | liballoc: Unconfigure tests during normal build | Vadim Petrochenkov | -483/+3 | |
| Remove additional libcore-like restrictions from liballoc, turns out the testing works ok if the tests are a part of liballoc itself. | ||||
| 2019-07-18 | Fix clippy::clone_on_copy warnings | Mateusz Mikuła | -1/+1 | |
| 2019-07-13 | Auto merge of #61953 - Centril:shared-from-iter, r=RalfJung | bors | -66/+198 | |
| Add `impl<T> FromIterator<T> for Arc/Rc<[T]>` Add implementations of `FromIterator<T> for Arc/Rc<[T]>` with symmetrical logic. This also takes advantage of specialization in the case of iterators with known length (`TrustedLen`) to elide the final allocation/copying from a `Vec<T>` into `Rc<[T]>` because we can allocate the space for the `Rc<[T]>` directly when the size is known. This is the primary motivation and why this is to be preferred over `iter.collect::<Vec<_>>().into(): Rc<[T]>`. Moreover, this PR does some refactoring in some places. r? @RalfJung for the code cc @alexcrichton from T-libs | ||||
| 2019-07-06 | Rollup merge of #61862 - vorner:weak-into-raw-methods, r=sfackler | Mazdak Farrokhzad | -15/+15 | |
| Make the Weak::{into,as}_raw methods Because Weak doesn't Deref, so there's no reason for them to be only associated methods. As kindly pointed out here https://github.com/rust-lang/rust/pull/60766#issuecomment-501706422 by @chpio. | ||||
| 2019-06-21 | shared_from_iter: Polish internal docs. | Mazdak Farrokhzad | -16/+16 | |
| 2019-06-20 | shared_from_iter: Clarify slice::Iter specialization impl. | Mazdak Farrokhzad | -2/+8 | |
| 2019-06-20 | data_offset_align: add inline attribute. | Mazdak Farrokhzad | -0/+1 | |
| 2019-06-20 | deduplicate slice_from_raw_parts_mut. | Mazdak Farrokhzad | -17/+1 | |
| 2019-06-20 | shared_from_iter/Arc: Use specialization to elide allocation. | Mazdak Farrokhzad | -40/+167 | |
| 2019-06-20 | Arc: refactor data_offset{_sized}. | Mazdak Farrokhzad | -8/+9 | |
| 2019-06-20 | Arc: refactor away PhantomData noise. | Mazdak Farrokhzad | -15/+21 | |
| 2019-06-20 | Add basic 'shared_from_iter' impls. | Mazdak Farrokhzad | -0/+7 | |
| 2019-06-16 | make `Weak::ptr_eq`s into methods | Thomas Heck | -7/+7 | |
| 2019-06-15 | Make the Weak::{into,as}_raw methods | Michal 'vorner' Vaner | -15/+15 | |
| Because Weak doesn't Deref, so there's no reason for them to be only associated methods. | ||||
| 2019-06-13 | docs: Use String in Rc::into_raw examples | Michal 'vorner' Vaner | -14/+14 | |
| It is unclear if accessing an integer after `drop_in_place` has been called on it is undefined behaviour or not, as demonstrated by the discussion in https://github.com/rust-lang/rust/pull/60766#pullrequestreview-243414222. Avoid these uncertainties by using String which frees memory in its `drop_in_place` to make sure this is undefined behaviour. The message in the docs should be to watch out and not access the data after that, not discussing when one maybe could get away with it O:-). | ||||
| 2019-05-26 | sync::Weak::{as,from,into}_raw | Michal 'vorner' Vaner | -6/+158 | |
| Methods on the Weak to access it as raw pointer to the data. | ||||
| 2019-05-11 | add comment to `Rc`/`Arc`'s `Eq` specialization | Thomas Heck | -0/+5 | |
| 2019-04-18 | make liballoc internal test suite mostly pass in Miri | Ralf Jung | -0/+2 | |
| 2019-02-10 | libs: doc comments | Alexander Regueiro | -4/+4 | |
| 2019-02-03 | liballoc: revert nested imports style changes. | Mazdak Farrokhzad | -42/+36 | |
| 2019-02-02 | liballoc: fix some idiom lints. | Mazdak Farrokhzad | -4/+4 | |
| 2019-02-02 | liballoc: elide some lifetimes. | Mazdak Farrokhzad | -2/+2 | |
| 2019-02-02 | liballoc: adjust abolute imports + more import fixes. | Mazdak Farrokhzad | -2/+1 | |
