diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index e5a51c98acacb..6f8ac078807b7 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -1538,15 +1538,30 @@ impl fmt::Debug for RangeTo { #[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")] pub enum RangeInclusive { /// Empty range (iteration has finished) + #[unstable(feature = "inclusive_range", + reason = "recently added, follows RFC", + issue = "28237")] Empty { /// The point at which iteration finished + #[unstable(feature = "inclusive_range", + reason = "recently added, follows RFC", + issue = "28237")] at: Idx }, /// Non-empty range (iteration will yield value(s)) + #[unstable(feature = "inclusive_range", + reason = "recently added, follows RFC", + issue = "28237")] NonEmpty { /// The lower bound of the range (inclusive). + #[unstable(feature = "inclusive_range", + reason = "recently added, follows RFC", + issue = "28237")] start: Idx, /// The upper bound of the range (inclusive). + #[unstable(feature = "inclusive_range", + reason = "recently added, follows RFC", + issue = "28237")] end: Idx, }, }