| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-10-19 | some more Rc tweaks | Ralf Jung | -10/+12 | |
| 2019-10-19 | the exampleis about drop, not (de)allocation | Ralf Jung | -2/+2 | |
| 2019-10-17 | more consistency and clarification | Ralf Jung | -13/+17 | |
| 2019-10-17 | Rc: value -> allocation | Ralf Jung | -44/+51 | |
| 2019-10-13 | Fix typo in docs for `Rc` | kalabukdima | -2/+2 | |
| 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 | -5/+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 | -2/+3 | |
| 2019-08-25 | Stabilise weak_ptr_eq | Thomas de Zeeuw | -3/+1 | |
| 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-02 | liballoc: Unconfigure tests during normal build | Vadim Petrochenkov | -430/+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 | -74/+213 | |
| 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 | -14/+15 | |
| 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/Rc: Use specialization to elide allocation. | Mazdak Farrokhzad | -39/+167 | |
| 2019-06-20 | Rc: reduce duplicate calls. | Mazdak Farrokhzad | -4/+8 | |
| 2019-06-20 | Rc: refactor data_offset{_sized}. | Mazdak Farrokhzad | -6/+7 | |
| 2019-06-20 | Rc: refactor away PhantomData noise. | Mazdak Farrokhzad | -23/+30 | |
| 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-14 | Auto merge of #61421 - vorner:string-in-rc-into-raw-docs, r=RalfJung | bors | -14/+14 | |
| docs: Use String in Rc::into_raw examples 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-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-06-04 | Rollup merge of #61135 - czipperz:rc-make_mut-weak-doc, r=Mark-Simulacrum | Mazdak Farrokhzad | -7/+27 | |
| Fix documentation of `Rc::make_mut` regarding `rc::Weak`. Closes #60961 | ||||
| 2019-05-26 | rc::Weak::{as,from,into}_raw | Michal 'vorner' Vaner | -6/+156 | |
| Methods on the Weak to access it as a raw pointer to the data. | ||||
| 2019-05-24 | Remove unused import in doctest | Chris Gregory | -1/+1 | |
| 2019-05-24 | Reword `are not other` to `are no other` | Chris Gregory | -1/+1 | |
| Co-Authored-By: Jonas Schievink <jonasschievink@gmail.com> | ||||
| 2019-05-24 | Fix documentation of `Rc::make_mut` regarding `rc::Weak`. | Chris Gregory | -7/+27 | |
| 2019-05-11 | add comment to `Rc`/`Arc`'s `Eq` specialization | Thomas Heck | -0/+5 | |
| 2019-03-09 | Use lifetime contravariance to elide more lifetimes in core+alloc+std | Scott McMurray | -2/+2 | |
| 2019-02-10 | libs: doc comments | Alexander Regueiro | -5/+5 | |
| 2019-02-03 | liballoc: revert nested imports style changes. | Mazdak Farrokhzad | -34/+30 | |
| 2019-02-02 | liballoc: fix some idiom lints. | Mazdak Farrokhzad | -4/+4 | |
