@@ -264,8 +264,8 @@ pub trait CharExt {
264264 fn escape_unicode ( self ) -> EscapeUnicode ;
265265 #[ stable( feature = "core" , since = "1.6.0" ) ]
266266 fn escape_default ( self ) -> EscapeDefault ;
267- #[ unstable( feature = "char_escape " , issue = "0 " ) ]
268- fn escape ( self ) -> Escape ;
267+ #[ unstable( feature = "char_escape_debug " , issue = "35068 " ) ]
268+ fn escape_debug ( self ) -> EscapeDebug ;
269269 #[ stable( feature = "core" , since = "1.6.0" ) ]
270270 fn len_utf8 ( self ) -> usize ;
271271 #[ stable( feature = "core" , since = "1.6.0" ) ]
@@ -330,7 +330,7 @@ impl CharExt for char {
330330 }
331331
332332 #[ inline]
333- fn escape ( self ) -> Escape {
333+ fn escape_debug ( self ) -> EscapeDebug {
334334 let init_state = match self {
335335 '\t' => EscapeDefaultState :: Backslash ( 't' ) ,
336336 '\r' => EscapeDefaultState :: Backslash ( 'r' ) ,
@@ -339,7 +339,7 @@ impl CharExt for char {
339339 c if is_printable ( c) => EscapeDefaultState :: Char ( c) ,
340340 c => EscapeDefaultState :: Unicode ( c. escape_unicode ( ) ) ,
341341 } ;
342- Escape ( EscapeDefault { state : init_state } )
342+ EscapeDebug ( EscapeDefault { state : init_state } )
343343 }
344344
345345 #[ inline]
@@ -618,24 +618,24 @@ impl ExactSizeIterator for EscapeDefault {
618618
619619/// An iterator that yields the literal escape code of a `char`.
620620///
621- /// This `struct` is created by the [`escape ()`] method on [`char`]. See its
621+ /// This `struct` is created by the [`escape_debug ()`] method on [`char`]. See its
622622/// documentation for more.
623623///
624- /// [`escape ()`]: ../../std/primitive.char.html#method.escape
624+ /// [`escape_debug ()`]: ../../std/primitive.char.html#method.escape_debug
625625/// [`char`]: ../../std/primitive.char.html
626- #[ unstable( feature = "char_escape " , issue = "0 " ) ]
626+ #[ unstable( feature = "char_escape_debug " , issue = "35068 " ) ]
627627#[ derive( Clone , Debug ) ]
628- pub struct Escape ( EscapeDefault ) ;
628+ pub struct EscapeDebug ( EscapeDefault ) ;
629629
630- #[ unstable( feature = "char_escape " , issue = "0 " ) ]
631- impl Iterator for Escape {
630+ #[ unstable( feature = "char_escape_debug " , issue = "35068 " ) ]
631+ impl Iterator for EscapeDebug {
632632 type Item = char ;
633633 fn next ( & mut self ) -> Option < char > { self . 0 . next ( ) }
634634 fn size_hint ( & self ) -> ( usize , Option < usize > ) { self . 0 . size_hint ( ) }
635635}
636636
637- #[ unstable( feature = "char_escape " , issue = "0 " ) ]
638- impl ExactSizeIterator for Escape { }
637+ #[ unstable( feature = "char_escape_debug " , issue = "35068 " ) ]
638+ impl ExactSizeIterator for EscapeDebug { }
639639
640640/// An iterator over `u8` entries represending the UTF-8 encoding of a `char`
641641/// value.
0 commit comments