@@ -1216,7 +1216,6 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
12161216/// # Examples
12171217///
12181218/// ```
1219- /// #![feature(debug_closure_helpers)]
12201219/// use std::fmt;
12211220///
12221221/// let value = 'a';
@@ -1227,7 +1226,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
12271226/// assert_eq!(format!("{}", wrapped), "'a'");
12281227/// assert_eq!(format!("{:?}", wrapped), "'a'");
12291228/// ```
1230- #[ unstable ( feature = "debug_closure_helpers " , issue = "117729 " ) ]
1229+ #[ stable ( feature = "fmt_from_fn " , since = "CURRENT_RUSTC_VERSION " ) ]
12311230#[ must_use = "returns a type implementing Debug and Display, which do not have any effects unless they are used" ]
12321231pub fn from_fn < F : Fn ( & mut fmt:: Formatter < ' _ > ) -> fmt:: Result > ( f : F ) -> FromFn < F > {
12331232 FromFn ( f)
@@ -1236,12 +1235,12 @@ pub fn from_fn<F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result>(f: F) -> FromFn<F>
12361235/// Implements [`fmt::Debug`] and [`fmt::Display`] using a function.
12371236///
12381237/// Created with [`from_fn`].
1239- #[ unstable ( feature = "debug_closure_helpers " , issue = "117729 " ) ]
1238+ #[ stable ( feature = "fmt_from_fn " , since = "CURRENT_RUSTC_VERSION " ) ]
12401239pub struct FromFn < F > ( F )
12411240where
12421241 F : Fn ( & mut fmt:: Formatter < ' _ > ) -> fmt:: Result ;
12431242
1244- #[ unstable ( feature = "debug_closure_helpers " , issue = "117729 " ) ]
1243+ #[ stable ( feature = "fmt_from_fn " , since = "CURRENT_RUSTC_VERSION " ) ]
12451244impl < F > fmt:: Debug for FromFn < F >
12461245where
12471246 F : Fn ( & mut fmt:: Formatter < ' _ > ) -> fmt:: Result ,
@@ -1251,7 +1250,7 @@ where
12511250 }
12521251}
12531252
1254- #[ unstable ( feature = "debug_closure_helpers " , issue = "117729 " ) ]
1253+ #[ stable ( feature = "fmt_from_fn " , since = "CURRENT_RUSTC_VERSION " ) ]
12551254impl < F > fmt:: Display for FromFn < F >
12561255where
12571256 F : Fn ( & mut fmt:: Formatter < ' _ > ) -> fmt:: Result ,
0 commit comments