rust/src/libcollections
Mark Simulacrum 423b410fce Rollup merge of #42260 - stjepang:document-cmp-traits-agreement, r=alexcrichton
Docs: impls of PartialEq/PartialOrd/Ord must agree

Fixes #41270.

This PR brings two improvements to the docs:

1. Docs for `PartialEq`, `PartialOrd`, and `Ord` clarify that their implementations must agree.
2. Fixes a subtle bug in the Dijkstra example for `BinaryHeap`, where the impls are inconsistent.
Thanks @Rufflewind for spotting the bug!

r? @alexcrichton
cc @frankmcsherry
2017-05-27 20:54:04 -06:00
..
benches Try to optimise char patterns 2017-05-19 10:14:13 +03:00
btree fallout from NonZero/Unique/Shared changes 2017-05-04 23:54:54 -04:00
tests Stabilize library features for 1.18.0 2017-05-20 21:58:47 -07:00
binary_heap.rs Rollup merge of #42260 - stjepang:document-cmp-traits-agreement, r=alexcrichton 2017-05-27 20:54:04 -06:00
borrow.rs Add ToOwned::clone_into (unstable as toowned_clone_into) 2017-04-12 17:21:15 -07:00
Cargo.toml Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
fmt.rs Rollup merge of #40241 - Sawyer47:fix-39997, r=alexcrichton 2017-03-19 20:51:06 -04:00
lib.rs Stabilize unions with Copy fields and no destructor 2017-05-27 00:52:20 +03:00
linked_list.rs fallout from NonZero/Unique/Shared changes 2017-05-04 23:54:54 -04:00
macros.rs Panic on errors in format! or <T: Display>::to_string 2017-03-01 23:47:59 +01:00
range.rs Make RangeInclusive just a two-field struct 2017-05-21 01:48:03 -07:00
slice.rs Update documentation for indexing/slicing methods 2017-05-26 15:49:35 +07:00
str.rs Rollup merge of #42236 - citizen428:docs/unchecked-indexing-slicing, r=GuillaumeGomez 2017-05-26 10:20:29 -04:00
string.rs Correct some stability versions 2017-05-20 08:38:39 +01:00
vec.rs Auto merge of #42111 - ollie27:stab, r=Mark-Simulacrum 2017-05-20 15:42:43 +00:00
vec_deque.rs fallout from NonZero/Unique/Shared changes 2017-05-04 23:54:54 -04:00