rust/src/libstd/net
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
..
addr.rs Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
ip.rs Rollup merge of #58392 - scottmcm:less-shifting-in-net-ip, r=oli-obk 2019-02-20 11:58:26 +08:00
mod.rs Remove licenses 2018-12-25 21:08:33 -07:00
parser.rs Remove licenses 2018-12-25 21:08:33 -07:00
tcp.rs Rollup merge of #58553 - scottmcm:more-ihle, r=Centril 2019-02-20 11:59:10 +08:00
test.rs Remove licenses 2018-12-25 21:08:33 -07:00
udp.rs libs: doc comments 2019-02-10 23:57:25 +00:00