File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
branches/snap-stage3/src/libstd Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 60ed6596204a614e50caf9e01dabca017e275476
4
+ refs/heads/snap-stage3: 8779be39e1a6e064d75cc32ad3610fad9a4fa9a6
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -56,6 +56,18 @@ impl<'self, T> Clone for &'self T {
56
56
fn clone ( & self ) -> & ' self T { * self }
57
57
}
58
58
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
+
59
71
macro_rules! clone_impl(
60
72
( $t: ty) => {
61
73
impl Clone for $t {
You can’t perform that action at this time.
0 commit comments