diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-16 22:53:16 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-18 11:39:29 -0700 |
| commit | 5749a1f9dce5dd82b03434e47a9e9891b7d0fdf9 (patch) | |
| tree | 0bf080cd0a3e386666538e0b238f3902dab10afe | |
| parent | cc789193e11ab2d864db3186aa1961283b3d4cdc (diff) | |
| download | rust-5749a1f9dce5dd82b03434e47a9e9891b7d0fdf9.tar.gz rust-5749a1f9dce5dd82b03434e47a9e9891b7d0fdf9.zip | |
std: Add missing stability on Range
Now that we check the stability of fields, the fields of this struct should also be stable.
| -rw-r--r-- | src/libcore/ops.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 077b44f2dd2..d1a3ebe1aa9 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -983,8 +983,10 @@ impl fmt::Debug for RangeFull { #[stable(feature = "rust1", since = "1.0.0")] pub struct Range<Idx> { /// The lower bound of the range (inclusive). + #[stable(feature = "rust1", since = "1.0.0")] pub start: Idx, /// The upper bound of the range (exclusive). + #[stable(feature = "rust1", since = "1.0.0")] pub end: Idx, } @@ -1001,11 +1003,10 @@ impl<Idx: fmt::Debug> fmt::Debug for Range<Idx> { #[stable(feature = "rust1", since = "1.0.0")] pub struct RangeFrom<Idx> { /// The lower bound of the range (inclusive). + #[stable(feature = "rust1", since = "1.0.0")] pub start: Idx, } - - #[stable(feature = "rust1", since = "1.0.0")] impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { @@ -1019,6 +1020,7 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> { #[stable(feature = "rust1", since = "1.0.0")] pub struct RangeTo<Idx> { /// The upper bound of the range (exclusive). + #[stable(feature = "rust1", since = "1.0.0")] pub end: Idx, } @@ -1029,7 +1031,6 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> { } } - /// The `Deref` trait is used to specify the functionality of dereferencing /// operations like `*v`. /// |
