about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-11-02 14:14:38 +0900
committerGitHub <noreply@github.com>2020-11-02 14:14:38 +0900
commitfb7948e7c1aa0ff6ce4cbde45cde2384d1d1ba10 (patch)
tree92d3e9f2f78de13e4967a7300fd1cfbbe1527c4a /compiler/rustc_mir/src/transform/coverage/graph.rs
parent7baf48ffc0eb94f15165191d5b2808822995ac82 (diff)
parenta79059d42d8f6b1e2c2f109aa55a8ff98f4eb453 (diff)
downloadrust-fb7948e7c1aa0ff6ce4cbde45cde2384d1d1ba10.tar.gz
rust-fb7948e7c1aa0ff6ce4cbde45cde2384d1d1ba10.zip
Rollup merge of #78627 - est31:total_cmp_no_superset, r=m-ou-se
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](https://doc.rust-lang.org/std/cmp/trait.Ord.html#how-can-i-implement-ord).
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions