| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-12-21 | Warn against relying on ?Sized being last | Mark Rousskov | -0/+2 | |
| 2019-12-21 | Require issue = "none" over issue = "0" in unstable attributes | Ross MacArthur | -4/+4 | |
| 2019-12-17 | Add internal safety docs to (A)Rc::into_raw | CAD97 | -0/+5 | |
| 2019-12-16 | Rollup merge of #65778 - bdonlan:stable_weak_count, r=dtolnay | Mazdak Farrokhzad | -10/+6 | |
| Stabilize `std::{rc,sync}::Weak::{weak_count, strong_count}` * Original PR: #56696 * Tracking issue: #57977 Closes: #57977 Supporting comments: > Although these were added for testing, it is occasionally useful to have a way to probe optimistically for whether a weak pointer has become dangling, without actually taking the overhead of manipulating atomics. Are there any plans to stabilize this? _Originally posted by @bdonlan in https://github.com/rust-lang/rust/issues/57977#issuecomment-516970921_ > Having this stabilized would help. Currently, the only way to check if a weak pointer has become dangling is to call `upgrade`, which is by far expensive. _Originally posted by @glebpom in https://github.com/rust-lang/rust/issues/57977#issuecomment-526934709_ Not sure if stabilizing these warrants a full RFC, so throwing this out here as a start for now. Note: per CONTRIBUTING.md, I ran the tidy checks, but they seem to be failing on unchanged files (primarily in `src/stdsimd`). | ||||
| 2019-12-15 | Use pointer offset instead of deref for A/Rc::into_raw | cad97 | -2/+7 | |
| 2019-12-14 | Bump Weak::strong_count/weak_count stabilizations from 1.40 to 1.41 | David Tolnay | -2/+2 | |
| 2019-12-05 | Rollup merge of #66710 - vorner:weak-into-raw-null-docs, r=dtolnay | Mazdak Farrokhzad | -10/+14 | |
| weak-into-raw: Clarify some details in Safety Clarify it is OK to pass a pointer that never owned a weak count (one from Weak::new) back into it as it was created from it. Relates to discussion in #60728. @CAD97 Do you want to have a look at the new docs? | ||||
| 2019-12-05 | weak-into-raw: Clarify some details in Safety | Michal 'vorner' Vaner | -10/+14 | |
| Clarify it is OK to pass a pointer that never owned a weak count (one from Weak::new) back into it as it was created from it. Relates to discussion in #60728. | ||||
| 2019-12-03 | Auto merge of #66256 - CAD97:patch-2, r=RalfJung | bors | -1/+1 | |
| Layout::pad_to_align is infallible As per [this comment](https://github.com/rust-lang/rust/issues/55724#issuecomment-441421651) (cc @glandium). > Per https://github.com/rust-lang/rust/blob/eb981a1/src/libcore/alloc.rs#L63-L65, `layout.size()` is always <= `usize::MAX - (layout.align() - 1)`. > > Which means: > > * The maximum value `layout.size()` can have is already aligned for `layout.align()` (`layout.align()` being a power of two, `usize::MAX - (layout.align() - 1)` is a multiple of `layout.align()`) > * Incidentally, any value smaller than that maximum value will align at most to that maximum value. > > IOW, `pad_to_align` can not return `Err(LayoutErr)`, except for the layout not respecting its invariants, but we shouldn't care about that. This PR makes `pad_to_align` return `Layout` directly, representing the fact that it cannot fail. | ||||
| 2019-11-26 | Rollup merge of #66128 - emilio:new-zeroed, r=SimonSapin | Tyler Mandry | -0/+29 | |
| alloc: Add new_zeroed() versions like new_uninit(). MaybeUninit has both uninit() and zeroed(), it seems reasonable to have the same surface on Box/Rc/Arc. Needs tests. cc #63291 | ||||
| 2019-11-21 | Make Weak::weak_count() return zero when no strong refs remain | Bryan Donlan | -8/+4 | |
| 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_align 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-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 | |
