Scott McMurray
44eec1d9b0
Merge two different equality specialization traits in core
2023-03-01 14:42:06 -08:00
Ralf Jung
338d7c2fb0
more typos
...
Co-authored-by: Nicholas Nethercote <n.nethercote@gmail.com >
2022-08-11 07:37:22 -04:00
Ralf Jung
2d1c683112
fix typo
...
Co-authored-by: Marco Colombo <mar.colombo13@gmail.com >
2022-07-20 10:39:21 -04:00
Ralf Jung
5848c27c79
make raw_eq precondition more restrictive
2022-07-20 10:22:16 -04:00
Scott McMurray
a0b96902e4
Do array-slice equality via arrays, rather than always via slices
...
This'll still go via slices eventually for large arrays, but this way slice comparisons to short arrays can use the same memcmp-avoidance tricks.
Added some tests for all the combinations to make sure I didn't accidentally infinitely-recurse something.
2021-12-14 13:15:15 -08:00
Scott McMurray
24affba02e
Allow memcmp for more array comparisons
...
This way comparing `[NonZeroU8; 8]` is just as fast as comparing `[u8; 8]`.
2021-12-10 17:30:39 -08:00
Pietro Albini
24f9de5a44
bump bootstrap compiler to 1.55
2021-08-01 11:19:24 -04:00
Scott McMurray
2456495a26
Stop generating allocas+memcmp for simple array equality
2021-07-08 14:55:54 -07:00
Scott McMurray
d05eafae2f
Move the PartialEq and Eq impls for arrays to a separate file
2021-07-08 14:53:37 -07:00