Skip to content

Commit 6eae7df

Browse files
committed
auto merge of #13023 : thestinger/rust/deep_clone, r=alexcrichton
2 parents 7334c11 + 0de6441 commit 6eae7df

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/doc/rust.md

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2538,7 +2538,7 @@ enum ABC { A, B, C }
25382538
~~~
25392539

25402540
The full list of derivable traits is `Eq`, `TotalEq`, `Ord`,
2541-
`TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`,
2541+
`TotalOrd`, `Encodable` `Decodable`, `Clone`,
25422542
`Hash`, `Rand`, `Default`, `Zero`, `FromPrimitive` and `Show`.
25432543

25442544
# Crates and the module system

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

+1-1
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

+1-1
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)