Skip to content

Commit 7b2c9fd

Browse files
Kimundialexcrichton
authored andcommitted
---
yaml --- r: 106936 b: refs/heads/try c: 1135966 h: refs/heads/master v: v3
1 parent 066d76a commit 7b2c9fd

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
@@ -2,7 +2,7 @@
22
refs/heads/master: b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b8601a3d8b91ad3b653d143307611f2f5c75617e
5-
refs/heads/try: 848f7b734ec88964879f5a3051b940d48469ce2e
5+
refs/heads/try: 113596655aede43576c3107b62ba98ecaac5ebae
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)