rust/src/libstd
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
..
collections Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
ffi Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
io Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
net Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
os Rollup merge of #58182 - jethrogb:jb/sgx-bytebuffer-len-0, r=joshtriplett 2019-02-06 00:29:20 +09:00
prelude Convert old doc links to current edition 2019-02-13 14:39:25 +00:00
sync Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
sys Rollup merge of #58438 - cuviper:posix_spawn_file_actions_addchdir_np, r=alexcrichton 2019-02-16 14:11:47 +08:00
sys_common Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
tests Update stdsimd 2019-01-29 10:48:54 +01:00
thread Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik 2019-02-12 19:09:24 +00:00
alloc.rs Replace deprecated ATOMIC_INIT consts 2019-01-26 15:27:38 -07:00
ascii.rs Remove licenses 2018-12-25 21:08:33 -07:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml update stdsimd 2019-02-14 16:20:58 +01:00
env.rs Use more impl header lifetime elision 2019-02-17 19:42:36 -08:00
error.rs Fix tracking issue for error iterators 2019-02-16 12:16:18 -08:00
f32.rs Remove licenses 2018-12-25 21:08:33 -07:00
f64.rs tests: doc comments 2019-02-10 23:42:32 +00:00
fs.rs Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
future.rs Update the future/task API 2019-02-03 13:46:53 -08:00
keyword_docs.rs libs: doc comments 2019-02-10 23:57:25 +00:00
lib.rs Rollup merge of #58395 - vi:checked_duration_since, r=dtolnay 2019-02-17 14:52:23 +08:00
macros.rs Rollup merge of #57693 - king6cong:word, r=Centril 2019-02-13 04:36:55 +01:00
memchr.rs Cosmetic improvements 2019-01-13 19:47:02 +00:00
num.rs Remove licenses 2018-12-25 21:08:33 -07:00
panic.rs Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
panicking.rs Remove licenses 2018-12-25 21:08:33 -07:00
path.rs Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
primitive_docs.rs libs: doc comments 2019-02-10 23:57:25 +00:00
process.rs libs: doc comments 2019-02-10 23:57:25 +00:00
rt.rs Remove licenses 2018-12-25 21:08:33 -07:00
time.rs Rollup merge of #58395 - vi:checked_duration_since, r=dtolnay 2019-02-17 14:52:23 +08:00