rust/src/liballoc
kennytm e3a8f7db47
Rollup merge of #58553 - scottmcm:more-ihle, r=Centril
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-20 11:59:10 +08:00
..
benches Stabilize slice_sort_by_cached_key 2019-02-12 22:26:44 -08:00
collections Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
tests Rollup merge of #58433 - RalfJung:miri-mark-tests, r=TimNN 2019-02-16 14:11:44 +08:00
alloc.rs liballoc: revert nested imports style changes. 2019-02-03 08:27:44 +01:00
borrow.rs Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
boxed.rs Rollup merge of #58429 - RalfJung:box, r=TimNN 2019-02-16 14:11:41 +08:00
boxed_test.rs liballoc: revert nested imports style changes. 2019-02-03 08:27:44 +01:00
Cargo.toml liballoc => edition = 2018. 2019-02-02 08:36:03 +01:00
fmt.rs tests: doc comments 2019-02-10 23:42:32 +00:00
lib.rs Rollup merge of #58468 - RalfJung:maybe-uninit-split, r=Centril 2019-02-16 14:11:55 +08:00
macros.rs Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik 2019-02-12 19:09:24 +00:00
prelude.rs liballoc: revert nested imports style changes. 2019-02-03 08:27:44 +01:00
raw_vec.rs libs: doc comments 2019-02-10 23:57:25 +00:00
rc.rs libs: doc comments 2019-02-10 23:57:25 +00:00
slice.rs Revert "Remove mentions of unstable sort_by_cached key from stable documentation" 2019-02-12 22:26:44 -08:00
str.rs Move str::escape_* to libcore 2019-02-12 09:55:30 +01:00
string.rs libs: doc comments 2019-02-10 23:57:25 +00:00
sync.rs libs: doc comments 2019-02-10 23:57:25 +00:00
vec.rs Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00