Matthias Krüger 4ead6d9dc7
Rollup merge of #95017 - zachs18:cmp_ordering_derive_eq, r=Dylan-DPC
Derive Eq for std::cmp::Ordering, instead of using manual impl.

This allows consts of type Ordering to be used in patterns, and with feature(adt_const_params) allows using `Ordering` as a const generic parameter.

Currently, `std::cmp::Ordering` implements `Eq` using a manually written `impl Eq for Ordering {}`, instead of `derive(Eq)`. This means that it does not implement `StructuralEq`.

This commit removes the manually written impl, and adds `derive(Eq)` to `Ordering`, so that it will implement `StructuralEq`.
2022-03-18 21:50:48 +01:00
..
2022-02-02 23:07:02 +09:00
2022-02-10 22:10:08 +00:00
2021-12-15 00:11:23 +08:00
2022-02-02 23:07:02 +09:00
2022-02-25 08:00:52 -05:00
2022-02-10 22:10:08 +00:00
2021-12-17 20:46:47 +08:00
2022-03-03 14:54:18 -05:00