@@ -48,6 +48,7 @@ pub use crate::ops::{Bound, OneSidedRange, RangeBounds, RangeFull, RangeTo, Rang
4848/// assert_eq!(Range::from(3..5), Range { start: 3, end: 5 });
4949/// assert_eq!(3 + 4 + 5, Range::from(3..6).into_iter().sum());
5050/// ```
51+ #[ cfg_attr( not( bootstrap) , lang = "RangeCopy" ) ]
5152#[ derive( Clone , Copy , Default , PartialEq , Eq , Hash ) ]
5253#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
5354pub struct Range < Idx > {
@@ -205,6 +206,7 @@ impl<T> From<legacy::Range<T>> for Range<T> {
205206/// assert_eq!(RangeInclusive::from(3..=5), RangeInclusive { start: 3, end: 5 });
206207/// assert_eq!(3 + 4 + 5, RangeInclusive::from(3..=5).into_iter().sum());
207208/// ```
209+ #[ cfg_attr( not( bootstrap) , lang = "RangeInclusiveCopy" ) ]
208210#[ derive( Clone , Copy , PartialEq , Eq , Hash ) ]
209211#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
210212pub struct RangeInclusive < Idx > {
@@ -388,6 +390,7 @@ impl<T> From<legacy::RangeInclusive<T>> for RangeInclusive<T> {
388390/// assert_eq!(RangeFrom::from(2..), core::range::RangeFrom { start: 2 });
389391/// assert_eq!(2 + 3 + 4, RangeFrom::from(2..).into_iter().take(3).sum());
390392/// ```
393+ #[ cfg_attr( not( bootstrap) , lang = "RangeFromCopy" ) ]
391394#[ derive( Clone , Copy , PartialEq , Eq , Hash ) ]
392395#[ unstable( feature = "new_range_api" , issue = "125687" ) ]
393396pub struct RangeFrom < Idx > {
0 commit comments