@@ -452,9 +452,7 @@ impl str {
452452 /// escaped.
453453 ///
454454 /// [`char::escape_debug`]: primitive.char.html#method.escape_debug
455- #[ unstable( feature = "str_escape" ,
456- reason = "return type may change to be an iterator" ,
457- issue = "27791" ) ]
455+ #[ stable( feature = "str_escape" , since = "1.34.0" ) ]
458456 pub fn escape_debug ( & self ) -> EscapeDebug {
459457 let mut chars = self . chars ( ) ;
460458 EscapeDebug {
@@ -469,19 +467,15 @@ impl str {
469467 /// Escapes each char in `s` with [`char::escape_default`].
470468 ///
471469 /// [`char::escape_default`]: primitive.char.html#method.escape_default
472- #[ unstable( feature = "str_escape" ,
473- reason = "return type may change to be an iterator" ,
474- issue = "27791" ) ]
470+ #[ stable( feature = "str_escape" , since = "1.34.0" ) ]
475471 pub fn escape_default ( & self ) -> EscapeDefault {
476472 EscapeDefault { inner : self . chars ( ) . flat_map ( CharEscapeDefault ) }
477473 }
478474
479475 /// Escapes each char in `s` with [`char::escape_unicode`].
480476 ///
481477 /// [`char::escape_unicode`]: primitive.char.html#method.escape_unicode
482- #[ unstable( feature = "str_escape" ,
483- reason = "return type may change to be an iterator" ,
484- issue = "27791" ) ]
478+ #[ stable( feature = "str_escape" , since = "1.34.0" ) ]
485479 pub fn escape_unicode ( & self ) -> EscapeUnicode {
486480 EscapeUnicode { inner : self . chars ( ) . flat_map ( CharEscapeUnicode ) }
487481 }
@@ -639,20 +633,20 @@ macro_rules! escape_types {
639633 inner: $Inner: ty,
640634 }
641635 ) +) => { $(
642- #[ unstable ( feature = "str_escape" , issue = "27791 " ) ]
636+ #[ stable ( feature = "str_escape" , since = "1.34.0 " ) ]
643637 #[ derive( Clone , Debug ) ]
644638 pub struct $Name<' a> {
645639 inner: $Inner,
646640 }
647641
648- #[ unstable ( feature = "str_escape" , issue = "27791 " ) ]
642+ #[ stable ( feature = "str_escape" , since = "1.34.0 " ) ]
649643 impl <' a> fmt:: Display for $Name<' a> {
650644 fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
651645 self . clone( ) . try_for_each( |c| f. write_char( c) )
652646 }
653647 }
654648
655- #[ unstable ( feature = "str_escape" , issue = "27791 " ) ]
649+ #[ stable ( feature = "str_escape" , since = "1.34.0 " ) ]
656650 impl <' a> Iterator for $Name<' a> {
657651 type Item = char ;
658652
@@ -677,7 +671,7 @@ macro_rules! escape_types {
677671 }
678672 }
679673
680- #[ unstable ( feature = "str_escape" , issue = "27791 " ) ]
674+ #[ stable ( feature = "str_escape" , since = "1.34.0 " ) ]
681675 impl <' a> FusedIterator for $Name<' a> { }
682676 ) +}
683677}
0 commit comments