@@ -187,15 +187,13 @@ impl<T> IntoBounds<T> for Range<T> {
187187
188188#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
189189impl < T > From < Range < T > > for legacy:: Range < T > {
190- /// Make a new `legacy::Range` with the same start and end as `Range`
191190 #[ inline]
192191 fn from ( value : Range < T > ) -> Self {
193192 Self { start : value. start , end : value. end }
194193 }
195194}
196195#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
197196impl < T > From < legacy:: Range < T > > for Range < T > {
198- /// Make a new `Range` with the same start and end as `legacy::Range`
199197 #[ inline]
200198 fn from ( value : legacy:: Range < T > ) -> Self {
201199 Self { start : value. start , end : value. end }
@@ -365,15 +363,13 @@ impl<T> IntoBounds<T> for RangeInclusive<T> {
365363
366364#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
367365impl < T > From < RangeInclusive < T > > for legacy:: RangeInclusive < T > {
368- /// Make a new `legacy::RangeInclusive` with the same start and end as `RangeInclusive`
369366 #[ inline]
370367 fn from ( value : RangeInclusive < T > ) -> Self {
371368 Self :: new ( value. start , value. end )
372369 }
373370}
374371#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
375372impl < T > From < legacy:: RangeInclusive < T > > for RangeInclusive < T > {
376- /// Make a new `RangeInclusive` with the same start and end as `legacy::RangeInclusive`
377373 #[ inline]
378374 fn from ( value : legacy:: RangeInclusive < T > ) -> Self {
379375 assert ! (
@@ -511,15 +507,13 @@ impl<T> IntoBounds<T> for RangeFrom<T> {
511507
512508#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
513509impl < T > From < RangeFrom < T > > for legacy:: RangeFrom < T > {
514- /// Make a new `legacy::RangeFrom` with the same start as `RangeFrom`
515510 #[ inline]
516511 fn from ( value : RangeFrom < T > ) -> Self {
517512 Self { start : value. start }
518513 }
519514}
520515#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
521516impl < T > From < legacy:: RangeFrom < T > > for RangeFrom < T > {
522- /// Make a new `RangeFrom` with the same start as `legacy::RangeFrom`
523517 #[ inline]
524518 fn from ( value : legacy:: RangeFrom < T > ) -> Self {
525519 Self { start : value. start }
0 commit comments