@@ -907,8 +907,8 @@ impl<T: Debug> Debug for BTreeSet<T> {
907
907
}
908
908
909
909
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
910
- impl < ' a , T > Clone for Iter < ' a , T > {
911
- fn clone ( & self ) -> Iter < ' a , T > {
910
+ impl < T > Clone for Iter < ' _ , T > {
911
+ fn clone ( & self ) -> Self {
912
912
Iter { iter : self . iter . clone ( ) }
913
913
}
914
914
}
@@ -963,8 +963,8 @@ impl<T> ExactSizeIterator for IntoIter<T> {
963
963
impl < T > FusedIterator for IntoIter < T > { }
964
964
965
965
#[ stable( feature = "btree_range" , since = "1.17.0" ) ]
966
- impl < ' a , T > Clone for Range < ' a , T > {
967
- fn clone ( & self ) -> Range < ' a , T > {
966
+ impl < T > Clone for Range < ' _ , T > {
967
+ fn clone ( & self ) -> Self {
968
968
Range { iter : self . iter . clone ( ) }
969
969
}
970
970
}
@@ -998,8 +998,8 @@ fn cmp_opt<T: Ord>(x: Option<&T>, y: Option<&T>, short: Ordering, long: Ordering
998
998
}
999
999
1000
1000
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1001
- impl < ' a , T > Clone for Difference < ' a , T > {
1002
- fn clone ( & self ) -> Difference < ' a , T > {
1001
+ impl < T > Clone for Difference < ' _ , T > {
1002
+ fn clone ( & self ) -> Self {
1003
1003
Difference {
1004
1004
a : self . a . clone ( ) ,
1005
1005
b : self . b . clone ( ) ,
@@ -1036,8 +1036,8 @@ impl<'a, T: Ord> Iterator for Difference<'a, T> {
1036
1036
impl < T : Ord > FusedIterator for Difference < ' _ , T > { }
1037
1037
1038
1038
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1039
- impl < ' a , T > Clone for SymmetricDifference < ' a , T > {
1040
- fn clone ( & self ) -> SymmetricDifference < ' a , T > {
1039
+ impl < T > Clone for SymmetricDifference < ' _ , T > {
1040
+ fn clone ( & self ) -> Self {
1041
1041
SymmetricDifference {
1042
1042
a : self . a . clone ( ) ,
1043
1043
b : self . b . clone ( ) ,
@@ -1070,8 +1070,8 @@ impl<'a, T: Ord> Iterator for SymmetricDifference<'a, T> {
1070
1070
impl < T : Ord > FusedIterator for SymmetricDifference < ' _ , T > { }
1071
1071
1072
1072
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1073
- impl < ' a , T > Clone for Intersection < ' a , T > {
1074
- fn clone ( & self ) -> Intersection < ' a , T > {
1073
+ impl < T > Clone for Intersection < ' _ , T > {
1074
+ fn clone ( & self ) -> Self {
1075
1075
Intersection {
1076
1076
a : self . a . clone ( ) ,
1077
1077
b : self . b . clone ( ) ,
@@ -1108,8 +1108,8 @@ impl<'a, T: Ord> Iterator for Intersection<'a, T> {
1108
1108
impl < T : Ord > FusedIterator for Intersection < ' _ , T > { }
1109
1109
1110
1110
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1111
- impl < ' a , T > Clone for Union < ' a , T > {
1112
- fn clone ( & self ) -> Union < ' a , T > {
1111
+ impl < T > Clone for Union < ' _ , T > {
1112
+ fn clone ( & self ) -> Self {
1113
1113
Union {
1114
1114
a : self . a . clone ( ) ,
1115
1115
b : self . b . clone ( ) ,
0 commit comments