From 5749a1f9dce5dd82b03434e47a9e9891b7d0fdf9 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 16 Mar 2015 22:53:16 -0700 Subject: [PATCH] std: Add missing stability on Range Now that we check the stability of fields, the fields of this struct should also be stable. --- src/libcore/ops.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 077b44f2dd2a7..d1a3ebe1aa960 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 { /// 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 fmt::Debug for Range { #[stable(feature = "rust1", since = "1.0.0")] pub struct RangeFrom { /// 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 fmt::Debug for RangeFrom { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { @@ -1019,6 +1020,7 @@ impl fmt::Debug for RangeFrom { #[stable(feature = "rust1", since = "1.0.0")] pub struct RangeTo { /// The upper bound of the range (exclusive). + #[stable(feature = "rust1", since = "1.0.0")] pub end: Idx, } @@ -1029,7 +1031,6 @@ impl fmt::Debug for RangeTo { } } - /// The `Deref` trait is used to specify the functionality of dereferencing /// operations like `*v`. ///