diff options
| author | Josh Stone <jistone@redhat.com> | 2025-02-18 09:10:45 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2025-02-18 09:32:44 -0800 |
| commit | 3c45324e678d7148d542f08ced5c666dba2e1d60 (patch) | |
| tree | e5d08e737c8827d812fae27271435cf6f3a705fa /library/core/src/range.rs | |
| parent | 82ad08ea7fa613012b270789063544b7e9c53320 (diff) | |
| download | rust-3c45324e678d7148d542f08ced5c666dba2e1d60.tar.gz rust-3c45324e678d7148d542f08ced5c666dba2e1d60.zip | |
update `cfg(bootstrap)`
Diffstat (limited to 'library/core/src/range.rs')
| -rw-r--r-- | library/core/src/range.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/range.rs b/library/core/src/range.rs index e94499065ac..2276112a27b 100644 --- a/library/core/src/range.rs +++ b/library/core/src/range.rs @@ -50,7 +50,7 @@ pub use crate::ops::{ /// assert_eq!(Range::from(3..5), Range { start: 3, end: 5 }); /// assert_eq!(3 + 4 + 5, Range::from(3..6).into_iter().sum()); /// ``` -#[cfg_attr(not(bootstrap), lang = "RangeCopy")] +#[lang = "RangeCopy"] #[derive(Clone, Copy, Default, PartialEq, Eq, Hash)] #[unstable(feature = "new_range_api", issue = "125687")] pub struct Range<Idx> { @@ -216,7 +216,7 @@ impl<T> From<legacy::Range<T>> for Range<T> { /// assert_eq!(RangeInclusive::from(3..=5), RangeInclusive { start: 3, end: 5 }); /// assert_eq!(3 + 4 + 5, RangeInclusive::from(3..=5).into_iter().sum()); /// ``` -#[cfg_attr(not(bootstrap), lang = "RangeInclusiveCopy")] +#[lang = "RangeInclusiveCopy"] #[derive(Clone, Copy, PartialEq, Eq, Hash)] #[unstable(feature = "new_range_api", issue = "125687")] pub struct RangeInclusive<Idx> { @@ -408,7 +408,7 @@ impl<T> From<legacy::RangeInclusive<T>> for RangeInclusive<T> { /// assert_eq!(RangeFrom::from(2..), core::range::RangeFrom { start: 2 }); /// assert_eq!(2 + 3 + 4, RangeFrom::from(2..).into_iter().take(3).sum()); /// ``` -#[cfg_attr(not(bootstrap), lang = "RangeFromCopy")] +#[lang = "RangeFromCopy"] #[derive(Clone, Copy, PartialEq, Eq, Hash)] #[unstable(feature = "new_range_api", issue = "125687")] pub struct RangeFrom<Idx> { |
