We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759fae6 commit 4ed3649Copy full SHA for 4ed3649
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 848f7b734ec88964879f5a3051b940d48469ce2e
+refs/heads/master: 113596655aede43576c3107b62ba98ecaac5ebae
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: b8601a3d8b91ad3b653d143307611f2f5c75617e
5
refs/heads/try: db814977d07bd798feb24f6b74c00800ef458a13
trunk/src/libstd/clone.rs
@@ -45,8 +45,9 @@ impl<T: Clone> Clone for ~T {
45
fn clone(&self) -> ~T { ~(**self).clone() }
46
47
/// Perform copy-assignment from `source` by reusing the existing allocation.
48
+ #[inline]
49
fn clone_from(&mut self, source: &~T) {
- **self = (**source).clone()
50
+ (**self).clone_from(&(**source));
51
}
52
53
0 commit comments