Skip to content

Commit 4ed3649

Browse files
Kimundialexcrichton
authored andcommitted
---
yaml --- r: 105458 b: refs/heads/master c: 1135966 h: refs/heads/master v: v3
1 parent 759fae6 commit 4ed3649

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 848f7b734ec88964879f5a3051b940d48469ce2e
2+
refs/heads/master: 113596655aede43576c3107b62ba98ecaac5ebae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b8601a3d8b91ad3b653d143307611f2f5c75617e
55
refs/heads/try: db814977d07bd798feb24f6b74c00800ef458a13

trunk/src/libstd/clone.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ impl<T: Clone> Clone for ~T {
4545
fn clone(&self) -> ~T { ~(**self).clone() }
4646

4747
/// Perform copy-assignment from `source` by reusing the existing allocation.
48+
#[inline]
4849
fn clone_from(&mut self, source: &~T) {
49-
**self = (**source).clone()
50+
(**self).clone_from(&(**source));
5051
}
5152
}
5253

0 commit comments

Comments
 (0)