rust/library/core/tests
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
..
fmt Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
hash add tests 2022-02-02 23:07:02 +09:00
iter Rollup merge of #94115 - scottmcm:iter-process-by-ref, r=yaahc 2022-03-18 21:50:44 +01:00
num Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
ops
alloc.rs
any.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
array.rs add cfg_panic bootstrap 2022-02-10 22:10:08 +00:00
ascii.rs
atomic.rs
bool.rs
cell.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
char.rs
clone.rs
cmp.rs Add test for StructuralEq for std::cmp::Ordering. 2022-03-16 14:01:48 -05:00
const_ptr.rs
convert.rs
future.rs add tests 2022-02-02 23:07:02 +09:00
intrinsics.rs Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
lazy.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
lib.rs Rollup merge of #93057 - frengor:iter_collect_into, r=m-ou-se 2022-03-09 23:14:11 +01:00
macros.rs
manually_drop.rs
mem.rs add cfg_panic bootstrap 2022-02-10 22:10:08 +00:00
nonzero.rs
ops.rs
option.rs
pattern.rs
pin_macro.rs Write {ui,} tests for pin_macro and pin! 2022-02-14 16:56:37 +01:00
pin.rs
ptr.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
result.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
simd.rs Miri can run this test now 2022-03-03 14:54:18 -05:00
slice.rs fix a warning when building core tests with cfg(miri) 2022-03-03 14:54:18 -05:00
str_lossy.rs
str.rs
task.rs
time.rs
tuple.rs
unicode.rs
waker.rs