Skip to content

Commit 0de6441

Browse files
committed
rm obsolete references to DeepClone
1 parent af93684 commit 0de6441

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ Supported traits for `deriving` are:
20332033

20342034
* Comparison traits: `Eq`, `TotalEq`, `Ord`, `TotalOrd`.
20352035
* Serialization: `Encodable`, `Decodable`. These require `serialize`.
2036-
* `Clone` and `DeepClone`, to perform (deep) copies.
2036+
* `Clone`, to create `T` from `&T` via a copy.
20372037
* `Hash`, to iterate over the bytes in a data type.
20382038
* `Rand`, to create a random instance of a data type.
20392039
* `Default`, to create an empty instance of a data type.

src/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,7 @@ enum ABC { A, B, C }
25342534
~~~
25352535

25362536
The full list of derivable traits is `Eq`, `TotalEq`, `Ord`,
2537-
`TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`,
2537+
`TotalOrd`, `Encodable` `Decodable`, `Clone`,
25382538
`Hash`, `Rand`, `Default`, `Zero`, `FromPrimitive` and `Show`.
25392539

25402540
# Crates and the module system

src/etc/generate-deriving-span-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def write_file(name, string):
116116
}
117117

118118
for (trait, supers, errs) in [('Rand', [], 1),
119-
('Clone', [], 1), ('DeepClone', ['Clone'], 1),
119+
('Clone', [], 1),
120120
('Eq', [], 2), ('Ord', [], 8),
121121
('TotalEq', [], 1), ('TotalOrd', ['TotalEq'], 1),
122122
('Show', [], 1),

src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ syn keyword rustTrait Any AnyOwnExt AnyRefExt AnyMutRefExt
7272
syn keyword rustTrait Ascii AsciiCast OwnedAsciiCast AsciiStr IntoBytes
7373
syn keyword rustTrait ToCStr
7474
syn keyword rustTrait Char
75-
syn keyword rustTrait Clone DeepClone
75+
syn keyword rustTrait Clone
7676
syn keyword rustTrait Eq Ord TotalEq TotalOrd Ordering Equiv
7777
syn keyword rustEnumVariant Less Equal Greater
7878
syn keyword rustTrait Container Mutable Map MutableMap Set MutableSet

0 commit comments

Comments
 (0)