@@ -68,15 +68,14 @@ impl [u8] {
68
68
/// # Examples
69
69
///
70
70
/// ```
71
- /// #![feature(inherent_ascii_escape)]
72
71
///
73
72
/// let s = b"0\t\r\n'\"\\\x9d";
74
73
/// let escaped = s.escape_ascii().to_string();
75
74
/// assert_eq!(escaped, "0\\t\\r\\n\\'\\\"\\\\\\x9d");
76
75
/// ```
77
76
#[ must_use = "this returns the escaped bytes as an iterator, \
78
77
without modifying the original"]
79
- #[ unstable ( feature = "inherent_ascii_escape" , issue = "77174 " ) ]
78
+ #[ stable ( feature = "inherent_ascii_escape" , since = "1.60.0 " ) ]
80
79
pub fn escape_ascii ( & self ) -> EscapeAscii < ' _ > {
81
80
EscapeAscii { inner : self . iter ( ) . flat_map ( EscapeByte ) }
82
81
}
@@ -93,13 +92,13 @@ impl_fn_for_zst! {
93
92
///
94
93
/// This `struct` is created by the [`slice::escape_ascii`] method. See its
95
94
/// documentation for more information.
96
- #[ unstable ( feature = "inherent_ascii_escape" , issue = "77174 " ) ]
95
+ #[ stable ( feature = "inherent_ascii_escape" , since = "1.60.0 " ) ]
97
96
#[ derive( Clone ) ]
98
97
pub struct EscapeAscii < ' a > {
99
98
inner : iter:: FlatMap < super :: Iter < ' a , u8 > , ascii:: EscapeDefault , EscapeByte > ,
100
99
}
101
100
102
- #[ unstable ( feature = "inherent_ascii_escape" , issue = "77174 " ) ]
101
+ #[ stable ( feature = "inherent_ascii_escape" , since = "1.60.0 " ) ]
103
102
impl < ' a > iter:: Iterator for EscapeAscii < ' a > {
104
103
type Item = u8 ;
105
104
#[ inline]
@@ -131,23 +130,23 @@ impl<'a> iter::Iterator for EscapeAscii<'a> {
131
130
}
132
131
}
133
132
134
- #[ unstable ( feature = "inherent_ascii_escape" , issue = "77174 " ) ]
133
+ #[ stable ( feature = "inherent_ascii_escape" , since = "1.60.0 " ) ]
135
134
impl < ' a > iter:: DoubleEndedIterator for EscapeAscii < ' a > {
136
135
fn next_back ( & mut self ) -> Option < u8 > {
137
136
self . inner . next_back ( )
138
137
}
139
138
}
140
- #[ unstable ( feature = "inherent_ascii_escape" , issue = "77174 " ) ]
139
+ #[ stable ( feature = "inherent_ascii_escape" , since = "1.60.0 " ) ]
141
140
impl < ' a > iter:: ExactSizeIterator for EscapeAscii < ' a > { }
142
- #[ unstable ( feature = "inherent_ascii_escape" , issue = "77174 " ) ]
141
+ #[ stable ( feature = "inherent_ascii_escape" , since = "1.60.0 " ) ]
143
142
impl < ' a > iter:: FusedIterator for EscapeAscii < ' a > { }
144
- #[ unstable ( feature = "inherent_ascii_escape" , issue = "77174 " ) ]
143
+ #[ stable ( feature = "inherent_ascii_escape" , since = "1.60.0 " ) ]
145
144
impl < ' a > fmt:: Display for EscapeAscii < ' a > {
146
145
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
147
146
self . clone ( ) . try_for_each ( |b| f. write_char ( b as char ) )
148
147
}
149
148
}
150
- #[ unstable ( feature = "inherent_ascii_escape" , issue = "77174 " ) ]
149
+ #[ stable ( feature = "inherent_ascii_escape" , since = "1.60.0 " ) ]
151
150
impl < ' a > fmt:: Debug for EscapeAscii < ' a > {
152
151
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
153
152
f. debug_struct ( "EscapeAscii" ) . finish_non_exhaustive ( )
0 commit comments