about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2020-11-01 14:27:36 +0100
committerest31 <MTest31@outlook.com>2020-11-01 18:45:17 +0100
commita79059d42d8f6b1e2c2f109aa55a8ff98f4eb453 (patch)
tree89173015ce6e221659e9405096303915d7c1b989 /compiler/rustc_mir/src/transform/coverage/graph.rs
parent4d247ad7d3d2a9f72cd60e281f39b5d85bd6a463 (diff)
downloadrust-a79059d42d8f6b1e2c2f109aa55a8ff98f4eb453.tar.gz
rust-a79059d42d8f6b1e2c2f109aa55a8ff98f4eb453.zip
Point out that total_cmp is no strict superset of partial comparison
Partial comparison and total_cmp are not equal. This helps
preventing the mistake of creating float wrappers that
base their Ord impl on total_cmp and their PartialOrd impl on
the PartialOrd impl of the float type. PartialOrd and Ord
are required to agree with each other.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions