about summary refs log tree commit diff
path: root/src/liballoc/borrow.rs
AgeCommit message (Collapse)AuthorLines
2019-04-15warn(missing_docs) in liballoc, and add missing docsRalf Jung-0/+1
2019-03-30Fix doc testsFabian Drinck-1/+1
2019-02-20Rollup merge of #58553 - scottmcm:more-ihle, r=Centrilkennytm-8/+8
Use more impl header lifetime elision Inspired by seeing explicit lifetimes on these two: - https://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#impl-FusedIterator - https://doc.rust-lang.org/nightly/std/primitive.u32.html#impl-Not And a follow-up to https://github.com/rust-lang/rust/pull/54687, that started using IHLE in libcore. Most of the changes in here fall into two big categories: - Removing lifetimes from common traits that can essentially never user a lifetime from an input (particularly `Drop`, `Debug`, and `Clone`) - Forwarding impls that are only possible because the lifetime doesn't matter (like `impl<R: Read + ?Sized> Read for &mut R`) I omitted things that seemed like they could be more controversial, like the handful of iterators that have a `Item: 'static` despite the iterator having a lifetime or the `PartialEq` implementations [where the flipped one cannot elide the lifetime](https://internals.rust-lang.org/t/impl-type-parameter-aliases/9403/2?u=scottmcm). I also removed two lifetimes that turned out to be completely unused; see https://github.com/rust-lang/rust/issues/41960#issuecomment-464557423
2019-02-17Use more impl header lifetime elisionScott McMurray-8/+8
There are two big categories of changes in here - Removing lifetimes from common traits that can essentially never user a lifetime from an input (particularly `Drop` & `Debug`) - Forwarding impls that are only possible because the lifetime doesn't matter (like `impl<R: Read + ?Sized> Read for &mut R`) I omitted things that seemed like they could be more controversial, like the handful of iterators that have a `Item: 'static` despite the iterator having a lifetime or the `PartialEq` implementations where the flipped one cannot elide the lifetime.
2019-02-10libs: doc commentsAlexander Regueiro-2/+2
2019-02-03liballoc: revert nested imports style changes.Mazdak Farrokhzad-6/+5
2019-02-02liballoc: fix some idiom lints.Mazdak Farrokhzad-2/+2
2019-02-02liballoc: elide some lifetimes.Mazdak Farrokhzad-13/+7
2019-02-02liballoc: apply uniform_paths.Mazdak Farrokhzad-4/+4
2019-02-02liballoc: refactor & fix some imports.Mazdak Farrokhzad-5/+6
2019-02-02liballoc: cargo check passes on 2018Mazdak Farrokhzad-2/+2
2019-01-28liballoc: remove unneeded allow(deprecated)Ralf Jung-1/+0
2018-12-25Remove licensesMark Rousskov-10/+0
2018-08-15Review fixRoman Proskuryakov-0/+1
2018-08-15Fix review notesRoman Proskuryakov-1/+1
2018-08-06Add one more example for Cow that shows how to keep Cow in a structRoman Proskuryakov-0/+34
2018-03-30Add #[must_use] to a few standard library methodsScott McMurray-0/+1
Chosen to start a precedent of using it on ones that are potentially-expensive and where using it for side effects is particularly discouraged. Discuss :)
2017-11-14examples in Cow::into_owned don't need to wrap result in CowsQuietMisdreavus-2/+2
2017-11-03Remove unused AsciiExt imports and fix tests related to ascii methodsLukas Kalbertodt-1/+0
Many AsciiExt imports have become useless thanks to the inherent ascii methods added in the last commits. These were removed. In some places, I fully specified the ascii method being called to enforce usage of the AsciiExt trait. Note that some imports are not removed but tagged with a `#[cfg(stage0)]` attribute. This is necessary, because certain ascii methods are not yet available in stage0. All those imports will be removed later. Additionally, failing tests were fixed. The test suite should exit successfully now.
2017-06-13Merge crate `collections` into `alloc`Murarth-0/+421