File tree 3 files changed +2
-5
lines changed
3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -438,10 +438,9 @@ impl<'a> Arguments<'a> {
438
438
/// assert_eq!(format_args!("{:?}", std::env::current_dir()).as_str(), None);
439
439
/// ```
440
440
#[ stable( feature = "fmt_as_str" , since = "1.52.0" ) ]
441
- #[ rustc_const_unstable ( feature = "const_arguments_as_str" , issue = "103900 " ) ]
441
+ #[ rustc_const_stable ( feature = "const_arguments_as_str" , since = "CURRENT_RUSTC_VERSION " ) ]
442
442
#[ must_use]
443
443
#[ inline]
444
- #[ cfg_attr( not( bootstrap) , rustc_const_stable_indirect) ]
445
444
pub const fn as_str ( & self ) -> Option < & ' static str > {
446
445
match ( self . pieces , self . args ) {
447
446
( [ ] , [ ] ) => Some ( "" ) ,
Original file line number Diff line number Diff line change 114
114
#![ feature( const_align_of_val_raw) ]
115
115
#![ feature( const_align_offset) ]
116
116
#![ feature( const_alloc_layout) ]
117
- #![ feature( const_arguments_as_str) ]
118
117
#![ feature( const_black_box) ]
119
118
#![ feature( const_char_encode_utf16) ]
120
119
#![ feature( const_eval_select) ]
Original file line number Diff line number Diff line change @@ -165,10 +165,9 @@ impl<'a> PanicMessage<'a> {
165
165
///
166
166
/// See [`fmt::Arguments::as_str`] for details.
167
167
#[ stable( feature = "panic_info_message" , since = "1.81.0" ) ]
168
- #[ rustc_const_unstable ( feature = "const_arguments_as_str" , issue = "103900 " ) ]
168
+ #[ rustc_const_stable ( feature = "const_arguments_as_str" , since = "CURRENT_RUSTC_VERSION " ) ]
169
169
#[ must_use]
170
170
#[ inline]
171
- #[ cfg_attr( not( bootstrap) , rustc_const_stable_indirect) ]
172
171
pub const fn as_str ( & self ) -> Option < & ' static str > {
173
172
self . message . as_str ( )
174
173
}
You can’t perform that action at this time.
0 commit comments