@@ -941,8 +941,8 @@ impl<T: Debug> Debug for BTreeSet<T> {
941
941
}
942
942
943
943
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
944
- impl < ' a , T > Clone for Iter < ' a , T > {
945
- fn clone ( & self ) -> Iter < ' a , T > {
944
+ impl < T > Clone for Iter < ' _ , T > {
945
+ fn clone ( & self ) -> Self {
946
946
Iter { iter : self . iter . clone ( ) }
947
947
}
948
948
}
@@ -997,8 +997,8 @@ impl<T> ExactSizeIterator for IntoIter<T> {
997
997
impl < T > FusedIterator for IntoIter < T > { }
998
998
999
999
#[ stable( feature = "btree_range" , since = "1.17.0" ) ]
1000
- impl < ' a , T > Clone for Range < ' a , T > {
1001
- fn clone ( & self ) -> Range < ' a , T > {
1000
+ impl < T > Clone for Range < ' _ , T > {
1001
+ fn clone ( & self ) -> Self {
1002
1002
Range { iter : self . iter . clone ( ) }
1003
1003
}
1004
1004
}
@@ -1032,8 +1032,8 @@ fn cmp_opt<T: Ord>(x: Option<&T>, y: Option<&T>, short: Ordering, long: Ordering
1032
1032
}
1033
1033
1034
1034
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1035
- impl < ' a , T > Clone for Difference < ' a , T > {
1036
- fn clone ( & self ) -> Difference < ' a , T > {
1035
+ impl < T > Clone for Difference < ' _ , T > {
1036
+ fn clone ( & self ) -> Self {
1037
1037
Difference {
1038
1038
a : self . a . clone ( ) ,
1039
1039
b : self . b . clone ( ) ,
@@ -1070,8 +1070,8 @@ impl<'a, T: Ord> Iterator for Difference<'a, T> {
1070
1070
impl < T : Ord > FusedIterator for Difference < ' _ , T > { }
1071
1071
1072
1072
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1073
- impl < ' a , T > Clone for SymmetricDifference < ' a , T > {
1074
- fn clone ( & self ) -> SymmetricDifference < ' a , T > {
1073
+ impl < T > Clone for SymmetricDifference < ' _ , T > {
1074
+ fn clone ( & self ) -> Self {
1075
1075
SymmetricDifference {
1076
1076
a : self . a . clone ( ) ,
1077
1077
b : self . b . clone ( ) ,
@@ -1112,8 +1112,8 @@ impl<'a, T> Clone for IntersectionOther<'a, T> {
1112
1112
}
1113
1113
}
1114
1114
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1115
- impl < ' a , T > Clone for Intersection < ' a , T > {
1116
- fn clone ( & self ) -> Intersection < ' a , T > {
1115
+ impl < T > Clone for Intersection < ' _ , T > {
1116
+ fn clone ( & self ) -> Self {
1117
1117
Intersection {
1118
1118
a : self . a . clone ( ) ,
1119
1119
b : self . b . clone ( ) ,
@@ -1162,8 +1162,8 @@ impl<'a, T: Ord> Iterator for Intersection<'a, T> {
1162
1162
impl < T : Ord > FusedIterator for Intersection < ' _ , T > { }
1163
1163
1164
1164
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1165
- impl < ' a , T > Clone for Union < ' a , T > {
1166
- fn clone ( & self ) -> Union < ' a , T > {
1165
+ impl < T > Clone for Union < ' _ , T > {
1166
+ fn clone ( & self ) -> Self {
1167
1167
Union {
1168
1168
a : self . a . clone ( ) ,
1169
1169
b : self . b . clone ( ) ,
0 commit comments