diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index fee40115f395..16d03901239b 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -995,8 +995,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, } @@ -1013,11 +1015,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 { @@ -1031,6 +1032,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, } @@ -1041,7 +1043,6 @@ impl fmt::Debug for RangeTo { } } - /// The `Deref` trait is used to specify the functionality of dereferencing /// operations like `*v`. ///