| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-02-07 | Remove images' url to make it work even without internet connection | Guillaume Gomez | -3/+1 | |
| 2019-02-07 | Rollup merge of #58123 - lnicola:binary-heap-no-bounds-checks, r=sfackler | kennytm | -3/+8 | |
| Avoid some bounds checks in binary_heap::{PeekMut,Hole} Fixes #58121. | ||||
| 2019-02-03 | Update the future/task API | Matthias Einwag | -137/+3 | |
| This change updates the future and task API as discussed in the stabilization RFC at https://github.com/rust-lang/rfcs/pull/2592. Changes: - Replacing UnsafeWake with RawWaker and RawWakerVtable - Removal of LocalWaker - Removal of Arc-based Wake trait | ||||
| 2019-02-03 | Auto merge of #58081 - Centril:liballoc-2018, r=oli-obk | bors | -392/+359 | |
| Transition liballoc to Rust 2018 This transitions liballoc to Rust 2018 edition and applies relevant idiom lints. I also did a small bit of drive-by cleanup along the way. r? @oli-obk I started with liballoc since it seemed easiest. In particular, adding `edition = "2018"` to libcore gave me way too many errors due to stdsimd. Ideally we should be able to continue this crate-by-crate until all crates use 2018. | ||||
| 2019-02-03 | Avoid some bounds checks in binary_heap::{PeekMut,Hole} | Laurențiu Nicola | -3/+8 | |
| 2019-02-03 | liballoc: revert nested imports style changes. | Mazdak Farrokhzad | -406/+305 | |
| 2019-02-02 | liballoc: remove redundant extern crate. | Mazdak Farrokhzad | -2/+0 | |
| 2019-02-02 | liballoc: fix some idiom lints. | Mazdak Farrokhzad | -87/+90 | |
| 2019-02-02 | liballoc: elide &'static. | Mazdak Farrokhzad | -2/+2 | |
| 2019-02-02 | liballoc: elide some lifetimes. | Mazdak Farrokhzad | -126/+119 | |
| 2019-02-02 | liballoc: apply uniform_paths. | Mazdak Farrokhzad | -19/+20 | |
| 2019-02-02 | liballoc: prefer imports of borrow from libcore. | Mazdak Farrokhzad | -14/+13 | |
| 2019-02-02 | liballoc: adjust abolute imports + more import fixes. | Mazdak Farrokhzad | -25/+15 | |
| 2019-02-02 | liballoc: refactor & fix some imports. | Mazdak Farrokhzad | -342/+424 | |
| 2019-02-02 | liballoc: cargo check passes on 2018 | Mazdak Farrokhzad | -60/+61 | |
| 2019-02-02 | liballoc => edition = 2018. | Mazdak Farrokhzad | -0/+1 | |
| 2019-02-01 | Stabilize split_ascii_whitespace | Simon Sapin | -2/+1 | |
| Tracking issue FCP to merge: https://github.com/rust-lang/rust/issues/48656#issuecomment-442372750 | ||||
| 2019-01-31 | Auto merge of #56696 - jonas-schievink:weak-counts, r=alexcrichton | bors | -1/+142 | |
| Implement Weak::{strong_count, weak_count} The counters are also useful on `Weak`, not just on strong references (`Rc` or `Arc`). In situations where there are still strong references around, you can also get these counts by temporarily upgrading and adjusting the values accordingly. Using the methods introduced here is simpler to do, less error-prone (since you can't forget to adjust the counts), can also be used when no strong references are around anymore, and might be more efficient due to not having to temporarily create an `Rc`. This is mainly useful in assertions or tests of complex data structures. Data structures might have internal invariants that make them the sole owner of a `Weak` pointer, and an assertion on the weak count could be used to ensure that this indeed happens as expected. Due to the presence of `Weak::upgrade`, the `strong_count` becomes less useful, but it still seems worthwhile to mirror the API of `Rc`. TODO: * [X] Tracking issue - https://github.com/rust-lang/rust/issues/57977 Closes https://github.com/rust-lang/rust/issues/50158 | ||||
| 2019-01-31 | Rollup merge of #57934 - dwijnand:from-Arc/Rc-to-NonNull, r=alexcrichton | Mazdak Farrokhzad | -0/+42 | |
| Introduce into_raw_non_null on Rc and Arc None | ||||
| 2019-01-30 | override `VecDeque`'s `Iter::try_fold` | Andre Bogus | -1/+47 | |
| 2019-01-29 | Add tracking issue to unstable attribute | Jonas Schievink | -4/+4 | |
| 2019-01-29 | Make weak_count return an Option<usize> | Jonas Schievink | -26/+22 | |
| 2019-01-29 | Implement a slightly racy `sync::Weak::weak_count` | Jonas Schievink | -5/+70 | |
| 2019-01-29 | Implement Weak::{strong_count, weak_count} | Jonas Schievink | -0/+80 | |
| 2019-01-28 | Introduce into_raw_non_null on Rc and Arc | Dale Wijnand | -0/+42 | |
| 2019-01-28 | Rollup merge of #57045 - RalfJung:kill-more-uninit, r=SimonSapin | Mazdak Farrokhzad | -21/+23 | |
| Kill remaining uses of mem::uninitialized in libcore, liballoc Kill remaining uses of mem::uninitialized in libcore and liballoc, and enable a lint that will warn when uses are added again in the future. To avoid casting raw pointers around (which is always very dangerous because it is not typechecked at all -- it doesn't even get the "same size" sanity check that `transmute` gets), I also added two new functions to `MaybeUninit`: ```rust /// Get a pointer to the first contained values. pub fn first_ptr(this: &[MaybeUninit<T>]) -> *const T { this as *const [MaybeUninit<T>] as *const T } /// Get a mutable pointer to the first contained values. pub fn first_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T { this as *mut [MaybeUninit<T>] as *mut T } ``` I changed some of the existing code to use array-of-`MaybeUninit` instead of `MaybeUninit`-of-array, successfully removing raw pointer casts there as well. | ||||
| 2019-01-28 | rename first_mut_ptr -> first_ptr_mut | Ralf Jung | -5/+5 | |
| 2019-01-28 | Use warn() for extra diagnostics; with -D warnings this leads to errors | Ralf Jung | -2/+2 | |
| This is needed to properly respect "deny_warnings = false" in config.toml | ||||
| 2019-01-28 | add macro for creating uninitialized array | Ralf Jung | -9/+3 | |
| 2019-01-28 | avoid some raw ptr casts in BTreeMap | Ralf Jung | -7/+10 | |
| 2019-01-28 | avoid mem::uninitialized in BTreeMap | Ralf Jung | -9/+17 | |
| 2019-01-28 | liballoc: remove unneeded allow(deprecated) | Ralf Jung | -3/+0 | |
| 2019-01-27 | impl Generator for Pin<Box<Generator>> | Wim Looman | -0/+10 | |
| 2019-01-27 | Change generator trait to use pinning | Wim Looman | -7/+6 | |
| 2019-01-26 | Replace deprecated ATOMIC_INIT consts | Mark Rousskov | -4/+4 | |
| 2019-01-26 | Bump bootstrap compiler to 1.33 beta | Mark Rousskov | -1/+0 | |
| 2019-01-15 | Deprecate the unstable Vec::resize_default | Scott McMurray | -0/+4 | |
| 2019-01-15 | Rollup merge of #57456 - fintelia:patch-4, r=dtolnay | Mazdak Farrokhzad | -1/+1 | |
| RawVec doesn't always abort on allocation errors | ||||
| 2019-01-13 | Add a debug_assert to Vec::set_len | Scott McMurray | -0/+2 | |
| 2019-01-12 | Rollup merge of #56425 - scottmcm:redo-vec-set_len-docs, r=Centril | Mazdak Farrokhzad | -27/+62 | |
| Redo the docs for Vec::set_len Inspired by the [recent conversation on IRLO](https://internals.rust-lang.org/t/make-vec-set-len-enforce-the-len-cap-invariant/8927/23?u=scottmcm). This is just my first stab at this; suggestions welcome. | ||||
| 2019-01-09 | explain safety for vec.set_len(0) | Mazdak Farrokhzad | -0/+3 | |
| 2019-01-08 | RawVec doesn't always abort on allocation errors | Jonathan Behrens | -1/+1 | |
| 2019-01-05 | Rollup merge of #57313 - Nemo157:box-to-pin, r=cramertj | kennytm | -5/+15 | |
| Improve Box<T> -> Pin<Box<T>> conversion I found the `From` trait conversion for this very hard to find, having a named function for it is much more discoverable. Also fixes #56256 as I need that in the place I'm using this. Has a placeholder tracking issue, will file an issue once I get feedback. | ||||
| 2019-01-03 | Add discoverable function for converting Box<T> -> Pin<Box<T>> | Wim Looman | -4/+14 | |
| 2019-01-03 | Allow converting Box<T: !Sized> -> Pin<Box<T>> | Wim Looman | -1/+1 | |
| 2019-01-02 | Update src/liballoc/vec.rs | Mazdak Farrokhzad | -0/+4 | |
| Add @centril's comment Co-Authored-By: scottmcm <scottmcm@users.noreply.github.com> | ||||
| 2018-12-29 | Mention ToString in std::fmt docs | Czipperz | -0/+9 | |
| 2018-12-28 | Auto merge of #55519 - fhartwig:hashmap-index-example, r=Centril | bors | -0/+3 | |
| Add example of using the indexing operator to HashMap docs Fixes #52575 | ||||
| 2018-12-26 | Stabilize duration_as_u128 | Sunjay Varma | -1/+1 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -511/+0 | |
