@@ -907,8 +907,8 @@ impl<T: Debug> Debug for BTreeSet<T> {
907907}
908908
909909#[ 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 {
912912 Iter { iter : self . iter . clone ( ) }
913913 }
914914}
@@ -963,8 +963,8 @@ impl<T> ExactSizeIterator for IntoIter<T> {
963963impl < T > FusedIterator for IntoIter < T > { }
964964
965965#[ 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 {
968968 Range { iter : self . iter . clone ( ) }
969969 }
970970}
@@ -998,8 +998,8 @@ fn cmp_opt<T: Ord>(x: Option<&T>, y: Option<&T>, short: Ordering, long: Ordering
998998}
999999
10001000#[ 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 {
10031003 Difference {
10041004 a : self . a . clone ( ) ,
10051005 b : self . b . clone ( ) ,
@@ -1036,8 +1036,8 @@ impl<'a, T: Ord> Iterator for Difference<'a, T> {
10361036impl < T : Ord > FusedIterator for Difference < ' _ , T > { }
10371037
10381038#[ 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 {
10411041 SymmetricDifference {
10421042 a : self . a . clone ( ) ,
10431043 b : self . b . clone ( ) ,
@@ -1070,8 +1070,8 @@ impl<'a, T: Ord> Iterator for SymmetricDifference<'a, T> {
10701070impl < T : Ord > FusedIterator for SymmetricDifference < ' _ , T > { }
10711071
10721072#[ 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 {
10751075 Intersection {
10761076 a : self . a . clone ( ) ,
10771077 b : self . b . clone ( ) ,
@@ -1108,8 +1108,8 @@ impl<'a, T: Ord> Iterator for Intersection<'a, T> {
11081108impl < T : Ord > FusedIterator for Intersection < ' _ , T > { }
11091109
11101110#[ 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 {
11131113 Union {
11141114 a : self . a . clone ( ) ,
11151115 b : self . b . clone ( ) ,
0 commit comments