@@ -452,9 +452,7 @@ impl str {
452
452
/// escaped.
453
453
///
454
454
/// [`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" ) ]
458
456
pub fn escape_debug ( & self ) -> EscapeDebug {
459
457
let mut chars = self . chars ( ) ;
460
458
EscapeDebug {
@@ -469,19 +467,15 @@ impl str {
469
467
/// Escapes each char in `s` with [`char::escape_default`].
470
468
///
471
469
/// [`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" ) ]
475
471
pub fn escape_default ( & self ) -> EscapeDefault {
476
472
EscapeDefault { inner : self . chars ( ) . flat_map ( CharEscapeDefault ) }
477
473
}
478
474
479
475
/// Escapes each char in `s` with [`char::escape_unicode`].
480
476
///
481
477
/// [`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" ) ]
485
479
pub fn escape_unicode ( & self ) -> EscapeUnicode {
486
480
EscapeUnicode { inner : self . chars ( ) . flat_map ( CharEscapeUnicode ) }
487
481
}
@@ -639,20 +633,20 @@ macro_rules! escape_types {
639
633
inner: $Inner: ty,
640
634
}
641
635
) +) => { $(
642
- #[ unstable ( feature = "str_escape" , issue = "27791 " ) ]
636
+ #[ stable ( feature = "str_escape" , since = "1.34.0 " ) ]
643
637
#[ derive( Clone , Debug ) ]
644
638
pub struct $Name<' a> {
645
639
inner: $Inner,
646
640
}
647
641
648
- #[ unstable ( feature = "str_escape" , issue = "27791 " ) ]
642
+ #[ stable ( feature = "str_escape" , since = "1.34.0 " ) ]
649
643
impl <' a> fmt:: Display for $Name<' a> {
650
644
fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
651
645
self . clone( ) . try_for_each( |c| f. write_char( c) )
652
646
}
653
647
}
654
648
655
- #[ unstable ( feature = "str_escape" , issue = "27791 " ) ]
649
+ #[ stable ( feature = "str_escape" , since = "1.34.0 " ) ]
656
650
impl <' a> Iterator for $Name<' a> {
657
651
type Item = char ;
658
652
@@ -677,7 +671,7 @@ macro_rules! escape_types {
677
671
}
678
672
}
679
673
680
- #[ unstable ( feature = "str_escape" , issue = "27791 " ) ]
674
+ #[ stable ( feature = "str_escape" , since = "1.34.0 " ) ]
681
675
impl <' a> FusedIterator for $Name<' a> { }
682
676
) +}
683
677
}
0 commit comments