Works around the lack of inlining of autogenerated `Eq` implementations in Rust. I'll add a comment (also just needs to be fixed upstream).