]> git.lizzy.rs Git - rust.git/commitdiff
std: Add missing stability on Range
authorAlex Crichton <alex@alexcrichton.com>
Tue, 17 Mar 2015 05:53:16 +0000 (22:53 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 18 Mar 2015 18:39:29 +0000 (11:39 -0700)
Now that we check the stability of fields, the fields of this struct should also
be stable.

src/libcore/ops.rs

index 077b44f2dd2a77dc97d7fe2f5073e5df5a0fa4d3..d1a3ebe1aa9602f2324dd0b8b05994a8025b6af6 100644 (file)
@@ -983,8 +983,10 @@ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
 #[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 @@ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
 #[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 @@ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
 #[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 @@ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
     }
 }
 
-
 /// The `Deref` trait is used to specify the functionality of dereferencing
 /// operations like `*v`.
 ///