File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
branches/snap-stage3/src/libcore Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 92221aba7b5f3e1688548cb97f51a21da981e3e2
4
+ refs/heads/snap-stage3: 6b3d3803eb8437907153bbb1b3c3978b29cd3a3b
5
5
refs/heads/try: 009d898a9422ac04c1aa60c0e9aff3abc5fa4672
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change 43
43
/// equivalence relation. For example, in floating point numbers `NaN != NaN`,
44
44
/// so floating point types implement `PartialEq` but not `Eq`.
45
45
///
46
- /// PartialEq only requires the `eq` method to be implemented; `ne` is its
47
- /// negation by default.
46
+ /// PartialEq only requires the `eq` method to be implemented; `ne` is defined
47
+ /// in terms of it by default. Any manual implementation of `ne` *must* respect
48
+ /// the rule that `eq` is a strict inverse of `ne`; that is, `!(a == b)` if and
49
+ /// only if `a != b`.
48
50
///
49
51
/// Eventually, this will be implemented by default for types that implement
50
52
/// `Eq`.
You can’t perform that action at this time.
0 commit comments