@@ -114,18 +114,17 @@ impl [u8] {
114114 /// Returns a byte slice with leading ASCII whitespace bytes removed.
115115 ///
116116 /// 'Whitespace' refers to the definition used by
117- /// `u8::is_ascii_whitespace`.
117+ /// [ `u8::is_ascii_whitespace`] .
118118 ///
119119 /// # Examples
120120 ///
121121 /// ```
122- /// #![feature(byte_slice_trim_ascii)]
123- ///
124122 /// assert_eq!(b" \t hello world\n".trim_ascii_start(), b"hello world\n");
125123 /// assert_eq!(b" ".trim_ascii_start(), b"");
126124 /// assert_eq!(b"".trim_ascii_start(), b"");
127125 /// ```
128- #[ unstable( feature = "byte_slice_trim_ascii" , issue = "94035" ) ]
126+ #[ stable( feature = "byte_slice_trim_ascii" , since = "CURRENT_RUSTC_VERSION" ) ]
127+ #[ rustc_const_stable( feature = "byte_slice_trim_ascii" , since = "CURRENT_RUSTC_VERSION" ) ]
129128 #[ inline]
130129 pub const fn trim_ascii_start ( & self ) -> & [ u8 ] {
131130 let mut bytes = self ;
@@ -144,18 +143,17 @@ impl [u8] {
144143 /// Returns a byte slice with trailing ASCII whitespace bytes removed.
145144 ///
146145 /// 'Whitespace' refers to the definition used by
147- /// `u8::is_ascii_whitespace`.
146+ /// [ `u8::is_ascii_whitespace`] .
148147 ///
149148 /// # Examples
150149 ///
151150 /// ```
152- /// #![feature(byte_slice_trim_ascii)]
153- ///
154151 /// assert_eq!(b"\r hello world\n ".trim_ascii_end(), b"\r hello world");
155152 /// assert_eq!(b" ".trim_ascii_end(), b"");
156153 /// assert_eq!(b"".trim_ascii_end(), b"");
157154 /// ```
158- #[ unstable( feature = "byte_slice_trim_ascii" , issue = "94035" ) ]
155+ #[ stable( feature = "byte_slice_trim_ascii" , since = "CURRENT_RUSTC_VERSION" ) ]
156+ #[ rustc_const_stable( feature = "byte_slice_trim_ascii" , since = "CURRENT_RUSTC_VERSION" ) ]
159157 #[ inline]
160158 pub const fn trim_ascii_end ( & self ) -> & [ u8 ] {
161159 let mut bytes = self ;
@@ -175,18 +173,17 @@ impl [u8] {
175173 /// removed.
176174 ///
177175 /// 'Whitespace' refers to the definition used by
178- /// `u8::is_ascii_whitespace`.
176+ /// [ `u8::is_ascii_whitespace`] .
179177 ///
180178 /// # Examples
181179 ///
182180 /// ```
183- /// #![feature(byte_slice_trim_ascii)]
184- ///
185181 /// assert_eq!(b"\r hello world\n ".trim_ascii(), b"hello world");
186182 /// assert_eq!(b" ".trim_ascii(), b"");
187183 /// assert_eq!(b"".trim_ascii(), b"");
188184 /// ```
189- #[ unstable( feature = "byte_slice_trim_ascii" , issue = "94035" ) ]
185+ #[ stable( feature = "byte_slice_trim_ascii" , since = "CURRENT_RUSTC_VERSION" ) ]
186+ #[ rustc_const_stable( feature = "byte_slice_trim_ascii" , since = "CURRENT_RUSTC_VERSION" ) ]
190187 #[ inline]
191188 pub const fn trim_ascii ( & self ) -> & [ u8 ] {
192189 self . trim_ascii_start ( ) . trim_ascii_end ( )
0 commit comments