@@ -860,13 +860,6 @@ impl fmt::Show for FullRange {
860860 }
861861}
862862
863- #[ unstable = "API still in development" ]
864- impl fmt:: String for FullRange {
865- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
866- fmt:: String :: fmt ( ".." , fmt)
867- }
868- }
869-
870863/// A (half-open) range which is bounded at both ends.
871864#[ derive( Copy , PartialEq , Eq ) ]
872865#[ lang="range" ]
@@ -925,20 +918,6 @@ impl<Idx: fmt::Show> fmt::Show for Range<Idx> {
925918 write ! ( fmt, "{:?}..{:?}" , self . start, self . end)
926919 }
927920}
928- #[ cfg( stage0) ]
929- #[ unstable = "API still in development" ]
930- impl < Idx : fmt:: String + fmt:: Show > fmt:: String for Range < Idx > {
931- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
932- write ! ( fmt, "{}..{}" , self . start, self . end)
933- }
934- }
935- #[ cfg( not( stage0) ) ]
936- #[ unstable = "API still in development" ]
937- impl < Idx : fmt:: String > fmt:: String for Range < Idx > {
938- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
939- write ! ( fmt, "{}..{}" , self . start, self . end)
940- }
941- }
942921
943922/// A range which is only bounded below.
944923#[ derive( Copy , PartialEq , Eq ) ]
@@ -969,21 +948,6 @@ impl<Idx: fmt::Show> fmt::Show for RangeFrom<Idx> {
969948 }
970949}
971950
972- #[ cfg( stage0) ]
973- #[ unstable = "API still in development" ]
974- impl < Idx : fmt:: String + fmt:: Show > fmt:: String for RangeFrom < Idx > {
975- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
976- write ! ( fmt, "{}.." , self . start)
977- }
978- }
979- #[ cfg( not( stage0) ) ]
980- #[ unstable = "API still in development" ]
981- impl < Idx : fmt:: String > fmt:: String for RangeFrom < Idx > {
982- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
983- write ! ( fmt, "{}.." , self . start)
984- }
985- }
986-
987951/// A range which is only bounded above.
988952#[ derive( Copy , PartialEq , Eq ) ]
989953#[ lang="range_to" ]
@@ -1000,21 +964,6 @@ impl<Idx: fmt::Show> fmt::Show for RangeTo<Idx> {
1000964 }
1001965}
1002966
1003- #[ cfg( stage0) ]
1004- #[ unstable = "API still in development" ]
1005- impl < Idx : fmt:: String + fmt:: Show > fmt:: String for RangeTo < Idx > {
1006- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
1007- write ! ( fmt, "..{}" , self . end)
1008- }
1009- }
1010- #[ cfg( not( stage0) ) ]
1011- #[ unstable = "API still in development" ]
1012- impl < Idx : fmt:: String > fmt:: String for RangeTo < Idx > {
1013- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
1014- write ! ( fmt, "..{}" , self . end)
1015- }
1016- }
1017-
1018967
1019968/// The `Deref` trait is used to specify the functionality of dereferencing
1020969/// operations like `*v`.
0 commit comments