File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -977,6 +977,7 @@ impl fmt::Debug for RangeFull {
977
977
}
978
978
}
979
979
980
+ #[ cfg( stage0) ]
980
981
/// A (half-open) range which is bounded at both ends.
981
982
#[ derive( Clone , PartialEq , Eq ) ]
982
983
#[ lang="range" ]
@@ -988,6 +989,18 @@ pub struct Range<Idx> {
988
989
pub end : Idx ,
989
990
}
990
991
992
+ #[ cfg( not( stage0) ) ]
993
+ /// A (half-open) range which is bounded at both ends.
994
+ #[ derive( Clone , Eq , PartialEq , Pod ) ]
995
+ #[ lang="range" ]
996
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
997
+ pub struct Range < Idx > {
998
+ /// The lower bound of the range (inclusive).
999
+ pub start : Idx ,
1000
+ /// The upper bound of the range (exclusive).
1001
+ pub end : Idx ,
1002
+ }
1003
+
991
1004
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
992
1005
impl < Idx : fmt:: Debug > fmt:: Debug for Range < Idx > {
993
1006
fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
You can’t perform that action at this time.
0 commit comments