@@ -54,6 +54,7 @@ impl<'a, 'b: 'a> fmt::Write for PadAdapter<'a, 'b> {
5454///
5555/// Constructed by the `Formatter::debug_struct` method.
5656#[ must_use]
57+ #[ stable( feature = "debug_builders" , since = "1.1.0" ) ]
5758pub struct DebugStruct < ' a , ' b : ' a > {
5859 fmt : & ' a mut fmt:: Formatter < ' b > ,
5960 result : fmt:: Result ,
@@ -72,7 +73,7 @@ pub fn debug_struct_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>, name: &str)
7273
7374impl < ' a , ' b : ' a > DebugStruct < ' a , ' b > {
7475 /// Adds a new field to the generated struct output.
75- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
76+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
7677 pub fn field ( mut self , name : & str , value : & fmt:: Debug ) -> DebugStruct < ' a , ' b > {
7778 self . result = self . result . and_then ( |_| {
7879 let prefix = if self . has_fields {
@@ -95,7 +96,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
9596
9697 /// Consumes the `DebugStruct`, finishing output and returning any error
9798 /// encountered.
98- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
99+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
99100 pub fn finish ( mut self ) -> fmt:: Result {
100101 if self . has_fields {
101102 self . result = self . result . and_then ( |_| {
@@ -118,6 +119,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
118119///
119120/// Constructed by the `Formatter::debug_tuple` method.
120121#[ must_use]
122+ #[ stable( feature = "debug_builders" , since = "1.1.0" ) ]
121123pub struct DebugTuple < ' a , ' b : ' a > {
122124 fmt : & ' a mut fmt:: Formatter < ' b > ,
123125 result : fmt:: Result ,
@@ -135,7 +137,7 @@ pub fn debug_tuple_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>, name: &str) -> D
135137
136138impl < ' a , ' b : ' a > DebugTuple < ' a , ' b > {
137139 /// Adds a new field to the generated tuple struct output.
138- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
140+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
139141 pub fn field ( mut self , value : & fmt:: Debug ) -> DebugTuple < ' a , ' b > {
140142 self . result = self . result . and_then ( |_| {
141143 let ( prefix, space) = if self . has_fields {
@@ -158,7 +160,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
158160
159161 /// Consumes the `DebugTuple`, finishing output and returning any error
160162 /// encountered.
161- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
163+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
162164 pub fn finish ( mut self ) -> fmt:: Result {
163165 if self . has_fields {
164166 self . result = self . result . and_then ( |_| {
@@ -199,7 +201,7 @@ impl<'a, 'b: 'a> DebugInner<'a, 'b> {
199201 self . has_fields = true ;
200202 }
201203
202- pub fn finish ( & mut self ) {
204+ fn finish ( & mut self ) {
203205 let prefix = if self . is_pretty ( ) && self . has_fields { "\n " } else { "" } ;
204206 self . result = self . result . and_then ( |_| self . fmt . write_str ( prefix) ) ;
205207 }
@@ -213,6 +215,7 @@ impl<'a, 'b: 'a> DebugInner<'a, 'b> {
213215///
214216/// Constructed by the `Formatter::debug_set` method.
215217#[ must_use]
218+ #[ stable( feature = "debug_builders" , since = "1.1.0" ) ]
216219pub struct DebugSet < ' a , ' b : ' a > {
217220 inner : DebugInner < ' a , ' b > ,
218221}
@@ -230,15 +233,15 @@ pub fn debug_set_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>) -> DebugSet<'a, 'b
230233
231234impl < ' a , ' b : ' a > DebugSet < ' a , ' b > {
232235 /// Adds a new entry to the set output.
233- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
236+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
234237 pub fn entry ( mut self , entry : & fmt:: Debug ) -> DebugSet < ' a , ' b > {
235238 self . inner . entry ( entry) ;
236239 self
237240 }
238241
239242 /// Consumes the `DebugSet`, finishing output and returning any error
240243 /// encountered.
241- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
244+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
242245 pub fn finish ( mut self ) -> fmt:: Result {
243246 self . inner . finish ( ) ;
244247 self . inner . result . and_then ( |_| self . inner . fmt . write_str ( "}" ) )
@@ -249,6 +252,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
249252///
250253/// Constructed by the `Formatter::debug_list` method.
251254#[ must_use]
255+ #[ stable( feature = "debug_builders" , since = "1.1.0" ) ]
252256pub struct DebugList < ' a , ' b : ' a > {
253257 inner : DebugInner < ' a , ' b > ,
254258}
@@ -266,15 +270,15 @@ pub fn debug_list_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>) -> DebugList<'a,
266270
267271impl < ' a , ' b : ' a > DebugList < ' a , ' b > {
268272 /// Adds a new entry to the set output.
269- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
273+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
270274 pub fn entry ( mut self , entry : & fmt:: Debug ) -> DebugList < ' a , ' b > {
271275 self . inner . entry ( entry) ;
272276 self
273277 }
274278
275279 /// Consumes the `DebugSet`, finishing output and returning any error
276280 /// encountered.
277- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
281+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
278282 pub fn finish ( mut self ) -> fmt:: Result {
279283 self . inner . finish ( ) ;
280284 self . inner . result . and_then ( |_| self . inner . fmt . write_str ( "]" ) )
@@ -285,6 +289,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
285289///
286290/// Constructed by the `Formatter::debug_map` method.
287291#[ must_use]
292+ #[ stable( feature = "debug_builders" , since = "1.1.0" ) ]
288293pub struct DebugMap < ' a , ' b : ' a > {
289294 fmt : & ' a mut fmt:: Formatter < ' b > ,
290295 result : fmt:: Result ,
@@ -302,7 +307,7 @@ pub fn debug_map_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>) -> DebugMap<'a, 'b
302307
303308impl < ' a , ' b : ' a > DebugMap < ' a , ' b > {
304309 /// Adds a new entry to the map output.
305- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
310+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
306311 pub fn entry ( mut self , key : & fmt:: Debug , value : & fmt:: Debug ) -> DebugMap < ' a , ' b > {
307312 self . result = self . result . and_then ( |_| {
308313 if self . is_pretty ( ) {
@@ -321,7 +326,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
321326
322327 /// Consumes the `DebugMap`, finishing output and returning any error
323328 /// encountered.
324- #[ unstable ( feature = "debug_builders" , reason = "method was just created " ) ]
329+ #[ stable ( feature = "debug_builders" , since = "1.1.0 " ) ]
325330 pub fn finish ( self ) -> fmt:: Result {
326331 let prefix = if self . is_pretty ( ) && self . has_fields { "\n " } else { "" } ;
327332 self . result . and_then ( |_| write ! ( self . fmt, "{}}}" , prefix) )
0 commit comments