diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-18 12:00:59 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-18 12:16:19 -0500 |
| commit | 82184440ecd33e87cd03a8f7c70af2ad95d5400f (patch) | |
| tree | 1eda0bfec40ffa7bc2d180c8182cfa81912df2dd /src/libcore/ops/range.rs | |
| parent | 6a400ee14967a0210c31a6e272d56cbbb2b372dd (diff) | |
| download | rust-82184440ecd33e87cd03a8f7c70af2ad95d5400f.tar.gz rust-82184440ecd33e87cd03a8f7c70af2ad95d5400f.zip | |
Propagate cfg bootstrap
Diffstat (limited to 'src/libcore/ops/range.rs')
| -rw-r--r-- | src/libcore/ops/range.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs index 54ce2917a36..be6d8edb99f 100644 --- a/src/libcore/ops/range.rs +++ b/src/libcore/ops/range.rs @@ -398,7 +398,7 @@ impl<Idx> RangeInclusive<Idx> { #[stable(feature = "inclusive_range_methods", since = "1.27.0")] #[inline] #[rustc_promotable] - #[cfg_attr(not(bootstrap), rustc_const_stable(feature = "const_range_new", since = "1.32.0"))] + #[rustc_const_stable(feature = "const_range_new", since = "1.32.0")] pub const fn new(start: Idx, end: Idx) -> Self { Self { start, end, is_empty: None } } @@ -422,10 +422,7 @@ impl<Idx> RangeInclusive<Idx> { /// assert_eq!((3..=5).start(), &3); /// ``` #[stable(feature = "inclusive_range_methods", since = "1.27.0")] - #[cfg_attr( - not(bootstrap), - rustc_const_stable(feature = "const_inclusive_range_methods", since = "1.32.0"), - )] + #[rustc_const_stable(feature = "const_inclusive_range_methods", since = "1.32.0")] #[inline] pub const fn start(&self) -> &Idx { &self.start @@ -450,10 +447,7 @@ impl<Idx> RangeInclusive<Idx> { /// assert_eq!((3..=5).end(), &5); /// ``` #[stable(feature = "inclusive_range_methods", since = "1.27.0")] - #[cfg_attr( - not(bootstrap), - rustc_const_stable(feature = "const_inclusive_range_methods", since = "1.32.0"), - )] + #[rustc_const_stable(feature = "const_inclusive_range_methods", since = "1.32.0")] #[inline] pub const fn end(&self) -> &Idx { &self.end |
