Skip to content

Commit a3b1361

Browse files
committed
Auto merge of #23434 - alexcrichton:misc-stab, r=aturon
Now that we check the stability of fields, the fields of this struct should also be stable.
2 parents a923278 + 5749a1f commit a3b1361

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libcore/ops.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -995,8 +995,10 @@ impl fmt::Debug for RangeFull {
995995
#[stable(feature = "rust1", since = "1.0.0")]
996996
pub struct Range<Idx> {
997997
/// The lower bound of the range (inclusive).
998+
#[stable(feature = "rust1", since = "1.0.0")]
998999
pub start: Idx,
9991000
/// The upper bound of the range (exclusive).
1001+
#[stable(feature = "rust1", since = "1.0.0")]
10001002
pub end: Idx,
10011003
}
10021004

@@ -1013,11 +1015,10 @@ impl<Idx: fmt::Debug> fmt::Debug for Range<Idx> {
10131015
#[stable(feature = "rust1", since = "1.0.0")]
10141016
pub struct RangeFrom<Idx> {
10151017
/// The lower bound of the range (inclusive).
1018+
#[stable(feature = "rust1", since = "1.0.0")]
10161019
pub start: Idx,
10171020
}
10181021

1019-
1020-
10211022
#[stable(feature = "rust1", since = "1.0.0")]
10221023
impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> {
10231024
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
@@ -1031,6 +1032,7 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> {
10311032
#[stable(feature = "rust1", since = "1.0.0")]
10321033
pub struct RangeTo<Idx> {
10331034
/// The upper bound of the range (exclusive).
1035+
#[stable(feature = "rust1", since = "1.0.0")]
10341036
pub end: Idx,
10351037
}
10361038

@@ -1041,7 +1043,6 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> {
10411043
}
10421044
}
10431045

1044-
10451046
/// The `Deref` trait is used to specify the functionality of dereferencing
10461047
/// operations like `*v`.
10471048
///

0 commit comments

Comments
 (0)