Skip to content

Commit 5749a1f

Browse files
committed
std: Add missing stability on Range
Now that we check the stability of fields, the fields of this struct should also be stable.
1 parent cc78919 commit 5749a1f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libcore/ops.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,10 @@ impl fmt::Debug for RangeFull {
983983
#[stable(feature = "rust1", since = "1.0.0")]
984984
pub struct Range<Idx> {
985985
/// The lower bound of the range (inclusive).
986+
#[stable(feature = "rust1", since = "1.0.0")]
986987
pub start: Idx,
987988
/// The upper bound of the range (exclusive).
989+
#[stable(feature = "rust1", since = "1.0.0")]
988990
pub end: Idx,
989991
}
990992

@@ -1001,11 +1003,10 @@ impl<Idx: fmt::Debug> fmt::Debug for Range<Idx> {
10011003
#[stable(feature = "rust1", since = "1.0.0")]
10021004
pub struct RangeFrom<Idx> {
10031005
/// The lower bound of the range (inclusive).
1006+
#[stable(feature = "rust1", since = "1.0.0")]
10041007
pub start: Idx,
10051008
}
10061009

1007-
1008-
10091010
#[stable(feature = "rust1", since = "1.0.0")]
10101011
impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> {
10111012
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
@@ -1019,6 +1020,7 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> {
10191020
#[stable(feature = "rust1", since = "1.0.0")]
10201021
pub struct RangeTo<Idx> {
10211022
/// The upper bound of the range (exclusive).
1023+
#[stable(feature = "rust1", since = "1.0.0")]
10221024
pub end: Idx,
10231025
}
10241026

@@ -1029,7 +1031,6 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> {
10291031
}
10301032
}
10311033

1032-
10331034
/// The `Deref` trait is used to specify the functionality of dereferencing
10341035
/// operations like `*v`.
10351036
///

0 commit comments

Comments
 (0)