Matthias Krüger 845c414fae
Rollup merge of #116714 - WaffleLapkin:order-the-order, r=joshtriplett
Derive `Ord`, `PartialOrd` and `Hash` for `SocketAddr*`

Fixes #116711

The main pain of this PR is to fix the buggy impl of `Ord` for `SocketAddrV6`, which ignored half of the fields (while `PartialEq` is derived):
4603f0b8af/library/core/src/net/socket_addr.rs (L99-L106)

4603f0b8af/library/core/src/net/socket_addr.rs (L676)

For me it looks like a simple copy-paste error made in https://github.com/rust-lang/rust/pull/72239 (copy from v4 impl) (cc `@hch12907),` as I don't see this behavior being mentioned anywhere on the PR and it also does not respect `cmp` trait "rules". I also do not see any reasons for those impls to _not_ be derived.

It's a shame we did not notice this for 28 versions/3 years. I guess this is a bug fix, but I'm not sure what the process here should be.

r? libs
2023-10-24 19:29:54 +02:00
..
2023-04-16 11:38:52 +00:00
2022-10-08 11:48:53 +00:00
2022-07-13 17:07:41 -07:00
2023-08-13 13:07:53 -06:00
2023-10-02 08:35:08 +02:00
2023-04-26 02:10:22 -04:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-05-30 08:00:10 -04:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-08-13 13:07:53 -06:00
2023-07-03 14:05:55 +02:00
2022-02-25 08:00:52 -05:00
2023-09-23 14:23:51 -03:00
2023-07-12 21:38:55 -04:00
2023-05-30 08:00:10 -04:00
2023-04-16 11:38:52 +00:00
2022-09-27 19:23:52 +00:00
2022-08-20 12:49:20 -04:00
2022-12-30 14:00:42 +01:00
2023-01-02 10:33:23 -08:00
2022-07-08 21:18:15 +00:00
2022-06-27 13:30:44 -04:00