Skip to content

Commit f28b982

Browse files
committed
---
yaml --- r: 63621 b: refs/heads/snap-stage3 c: 8779be3 h: refs/heads/master i: 63619: 876b3e3 v: v3
1 parent 195842a commit f28b982

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 60ed6596204a614e50caf9e01dabca017e275476
4+
refs/heads/snap-stage3: 8779be39e1a6e064d75cc32ad3610fad9a4fa9a6
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/clone.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ impl<'self, T> Clone for &'self T {
5656
fn clone(&self) -> &'self T { *self }
5757
}
5858

59+
impl<'self, T> Clone for &'self [T] {
60+
/// Return a shallow copy of the slice.
61+
#[inline]
62+
fn clone(&self) -> &'self [T] { *self }
63+
}
64+
65+
impl<'self> Clone for &'self str {
66+
/// Return a shallow copy of the slice.
67+
#[inline]
68+
fn clone(&self) -> &'self str { *self }
69+
}
70+
5971
macro_rules! clone_impl(
6072
($t:ty) => {
6173
impl Clone for $t {

0 commit comments

Comments
 (0)