4 ms·
The implementation isn't symmetric, it'll work if you compare `b == a`. Apparently[0] it's something to do with avoiding code bloat. [0] https://github.com/rus
by Measter 5y ago
The implementation isn't symmetric, it'll work if you compare `b == a`. Apparently[0] it's something to do with avoiding code bloat.
[0] https://github.com/rust-lang/rust/blob/e4c23daeb461ac02413eb36c8cefcc5530638a05/library/alloc/src/vec/partial_eq.rs#L39 https://github.com/rust-lang/rust/blob/e4c23daeb461ac02413eb...