Skip to content

Commit

Permalink
Update few files after comparison traits renaming
Browse files Browse the repository at this point in the history
There were still Total{Ord,Eq} in docs and src/etc
  • Loading branch information
Sawyer47 committed Jun 22, 2014
1 parent 4c39962 commit 0b9e4fc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/doc/guide-container.md
Expand Up @@ -26,7 +26,7 @@ The standard library provides three owned map/set types:
implement `Eq` and `Hash`
* `collections::TrieMap` and `collections::TrieSet`, requiring the keys to be `uint`
* `collections::TreeMap` and `collections::TreeSet`, requiring the keys
to implement `TotalOrd`
to implement `Ord`

These maps do not use managed pointers so they can be sent between tasks as
long as the key and value types are sendable. Neither the key or value type has
Expand Down
2 changes: 1 addition & 1 deletion src/doc/rust.md
Expand Up @@ -2270,7 +2270,7 @@ impl<T: PartialEq> PartialEq for Foo<T> {

Supported traits for `deriving` are:

* Comparison traits: `PartialEq`, `TotalEq`, `PartialOrd`, `TotalOrd`.
* Comparison traits: `PartialEq`, `Eq`, `PartialOrd`, `Ord`.
* Serialization: `Encodable`, `Decodable`. These require `serialize`.
* `Clone`, to create `T` from `&T` via a copy.
* `Hash`, to iterate over the bytes in a data type.
Expand Down
4 changes: 2 additions & 2 deletions src/doc/tutorial.md
Expand Up @@ -2619,8 +2619,8 @@ fn main() {
}
~~~

The full list of derivable traits is `PartialEq`, `TotalEq`, `Ord`,
`TotalOrd`, `Encodable`, `Decodable`, `Clone`,
The full list of derivable traits is `PartialEq`, `Eq`, `PartialOrd`,
`Ord`, `Encodable`, `Decodable`, `Clone`,
`Hash`, `Rand`, `Default`, `Zero`, `FromPrimitive` and `Show`.

# Crates and the module system
Expand Down
4 changes: 2 additions & 2 deletions src/etc/generate-deriving-span-tests.py
Expand Up @@ -119,8 +119,8 @@ def write_file(name, string):
('Clone', [], 1),
('PartialEq', [], 2),
('PartialOrd', ['PartialEq'], 8),
('TotalEq', ['PartialEq'], 1),
('TotalOrd', ['TotalEq', 'PartialOrd', 'PartialEq'], 1),
('Eq', ['PartialEq'], 1),
('Ord', ['Eq', 'PartialOrd', 'PartialEq'], 1),
('Show', [], 1),
('Hash', [], 1)]:
traits[trait] = (ALL, supers, errs)
Expand Down
4 changes: 2 additions & 2 deletions src/etc/vim/syntax/rust.vim
Expand Up @@ -82,7 +82,7 @@ syn keyword rustTrait Ascii AsciiCast OwnedAsciiCast AsciiStr IntoBytes
syn keyword rustTrait ToCStr
syn keyword rustTrait Char
syn keyword rustTrait Clone
syn keyword rustTrait Eq Ord TotalEq TotalOrd Ordering Equiv
syn keyword rustTrait Eq Ord PartialEq PartialOrd Ordering Equiv
syn keyword rustEnumVariant Less Equal Greater
syn keyword rustTrait Container Mutable Map MutableMap Set MutableSet
syn keyword rustTrait FromIterator Extendable
Expand All @@ -104,7 +104,7 @@ syn keyword rustTrait Tuple5 Tuple6 Tuple7 Tuple8
syn keyword rustTrait Tuple9 Tuple10 Tuple11 Tuple12
syn keyword rustTrait CloneableVector ImmutableCloneableVector MutableCloneableVector
syn keyword rustTrait ImmutableVector MutableVector
syn keyword rustTrait ImmutableEqVector ImmutableTotalOrdVector MutableTotalOrdVector
syn keyword rustTrait ImmutableEqVector ImmutableOrdVector MutableOrdVector
syn keyword rustTrait Vector VectorVector OwnedVector MutableVectorAllocating
syn keyword rustTrait String
syn keyword rustTrait Vec
Expand Down

5 comments on commit 0b9e4fc

@bors
Copy link
Contributor

@bors bors commented on 0b9e4fc Jun 22, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at Sawyer47@0b9e4fc

@bors
Copy link
Contributor

@bors bors commented on 0b9e4fc Jun 22, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging Sawyer47/rust/detotal = 0b9e4fc into auto

@bors
Copy link
Contributor

@bors bors commented on 0b9e4fc Jun 22, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sawyer47/rust/detotal = 0b9e4fc merged ok, testing candidate = c9f3c68

@bors
Copy link
Contributor

@bors bors commented on 0b9e4fc Jun 22, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = c9f3c68

Please sign in to comment.