Files
rust/compiler/rustc_span/src
Matthias Krüger e2bc6b8172 Rollup merge of #102382 - cuviper:defid-order, r=fee1-dead
Manually order `DefId` on 64-bit big-endian

`DefId` uses different field orders on 64-bit big-endian vs. others, in
order to optimize its `Hash` implementation. However, that also made it
derive different lexical ordering for `PartialOrd` and `Ord`. That
caused spurious differences wherever `DefId`s are sorted, like the
candidate sources list in `report_method_error`.

Now we manually implement `PartialOrd` and `Ord` on 64-bit big-endian to
match the same lexical ordering as other targets, fixing at least one
test, `src/test/ui/methods/method-ambig-two-traits-cross-crate.rs`.
2022-09-30 19:06:05 +02:00
..
2022-08-08 21:12:04 +02:00
2020-12-03 17:08:19 -05:00
2022-04-02 02:45:49 -04:00
2022-09-26 10:14:45 +02:00
2022-09-01 14:54:27 +00:00
2022-08-17 19:20:28 +02:00
2022-06-01 10:36:39 +10:00