c2rust
c2rust copied to clipboard
`transpile`: Rewrite `fn compare_src_locs` implementation to have a total order
This implementation is simplified compared to the previous one. It is also almost twice as slow in the exhaustive test (15 vs 25 seconds). However, in real sort usage the impact should be significantly less.
- Fixes #1126