File tree 2 files changed +1
-6
lines changed
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -401,8 +401,6 @@ impl<'a> Arguments<'a> {
401
401
/// # Examples
402
402
///
403
403
/// ```rust
404
- /// #![feature(fmt_as_str)]
405
- ///
406
404
/// use std::fmt::Arguments;
407
405
///
408
406
/// fn write_str(_: &str) { /* ... */ }
@@ -417,13 +415,11 @@ impl<'a> Arguments<'a> {
417
415
/// ```
418
416
///
419
417
/// ```rust
420
- /// #![feature(fmt_as_str)]
421
- ///
422
418
/// assert_eq!(format_args!("hello").as_str(), Some("hello"));
423
419
/// assert_eq!(format_args!("").as_str(), Some(""));
424
420
/// assert_eq!(format_args!("{}", 1).as_str(), None);
425
421
/// ```
426
- #[ unstable ( feature = "fmt_as_str" , issue = "74442 " ) ]
422
+ #[ stable ( feature = "fmt_as_str" , since = "1.52.0 " ) ]
427
423
#[ inline]
428
424
pub fn as_str ( & self ) -> Option < & ' static str > {
429
425
match ( self . pieces , self . args ) {
Original file line number Diff line number Diff line change 264
264
#![ feature( exhaustive_patterns) ]
265
265
#![ feature( extend_one) ]
266
266
#![ feature( external_doc) ]
267
- #![ feature( fmt_as_str) ]
268
267
#![ feature( fn_traits) ]
269
268
#![ feature( format_args_nl) ]
270
269
#![ feature( gen_future) ]
You can’t perform that action at this time.
0 commit comments