@@ -48,6 +48,7 @@ pub use crate::ops::{Bound, OneSidedRange, RangeBounds, RangeFull, RangeTo, Rang
48
48
/// assert_eq!(Range::from(3..5), Range { start: 3, end: 5 });
49
49
/// assert_eq!(3 + 4 + 5, Range::from(3..6).into_iter().sum());
50
50
/// ```
51
+ #[ cfg_attr( not( bootstrap) , lang = "RangeCopy" ) ]
51
52
#[ derive( Clone , Copy , Default , PartialEq , Eq , Hash ) ]
52
53
#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
53
54
pub struct Range < Idx > {
@@ -205,6 +206,7 @@ impl<T> From<legacy::Range<T>> for Range<T> {
205
206
/// assert_eq!(RangeInclusive::from(3..=5), RangeInclusive { start: 3, end: 5 });
206
207
/// assert_eq!(3 + 4 + 5, RangeInclusive::from(3..=5).into_iter().sum());
207
208
/// ```
209
+ #[ cfg_attr( not( bootstrap) , lang = "RangeInclusiveCopy" ) ]
208
210
#[ derive( Clone , Copy , PartialEq , Eq , Hash ) ]
209
211
#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
210
212
pub struct RangeInclusive < Idx > {
@@ -388,6 +390,7 @@ impl<T> From<legacy::RangeInclusive<T>> for RangeInclusive<T> {
388
390
/// assert_eq!(RangeFrom::from(2..), core::range::RangeFrom { start: 2 });
389
391
/// assert_eq!(2 + 3 + 4, RangeFrom::from(2..).into_iter().take(3).sum());
390
392
/// ```
393
+ #[ cfg_attr( not( bootstrap) , lang = "RangeFromCopy" ) ]
391
394
#[ derive( Clone , Copy , PartialEq , Eq , Hash ) ]
392
395
#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
393
396
pub struct RangeFrom < Idx > {
0 commit comments