about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-05-15 03:14:46 +0000
committerbors <bors@rust-lang.org>2018-05-15 03:14:46 +0000
commitd711dc9d57b7992d1d946ba1a7e10ee6693293c2 (patch)
tree5e43767d166ad586bb6b5fc3c9423a3b66a3c1e6 /src/test/debuginfo/enum-thinlto.rs
parent308b7b05c3acfbbf5e00f16bc9cf9481ae08f4f0 (diff)
parent6805e5abd2a6fbdca75ff3c96ee58398dcbdfd04 (diff)
downloadrust-d711dc9d57b7992d1d946ba1a7e10ee6693293c2.tar.gz
rust-d711dc9d57b7992d1d946ba1a7e10ee6693293c2.zip
Auto merge of #50011 - varkor:partialord-opt-ii, r=Manishearth
Ensure derive(PartialOrd) is no longer accidentally exponential

Previously, two comparison operations would be generated for each field, each of which could delegate to another derived PartialOrd. Now we use ordering and optional chaining to ensure each pair of fields is only compared once, addressing https://github.com/rust-lang/rust/issues/49650#issuecomment-379467572.

Closes #49505.

r? @Manishearth (sorry for changing it again so soon!)

Close #50755
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions