@@ -24,7 +24,7 @@ pub struct PanicInfo<'a> {
24
24
/// that were given to the `panic!()` macro.
25
25
///
26
26
/// See [`PanicInfo::message`].
27
- #[ unstable ( feature = "panic_info_message" , issue = "66745 " ) ]
27
+ #[ stable ( feature = "panic_info_message" , since = "CURRENT_RUSTC_VERSION " ) ]
28
28
pub struct PanicMessage < ' a > {
29
29
message : fmt:: Arguments < ' a > ,
30
30
}
@@ -57,7 +57,7 @@ impl<'a> PanicInfo<'a> {
57
57
/// }
58
58
/// ```
59
59
#[ must_use]
60
- #[ unstable ( feature = "panic_info_message" , issue = "66745 " ) ]
60
+ #[ stable ( feature = "panic_info_message" , since = "CURRENT_RUSTC_VERSION " ) ]
61
61
pub fn message ( & self ) -> PanicMessage < ' _ > {
62
62
PanicMessage { message : self . message }
63
63
}
@@ -164,7 +164,7 @@ impl<'a> PanicMessage<'a> {
164
164
/// For most cases with placeholders, this function will return `None`.
165
165
///
166
166
/// See [`fmt::Arguments::as_str`] for details.
167
- #[ unstable ( feature = "panic_info_message" , issue = "66745 " ) ]
167
+ #[ stable ( feature = "panic_info_message" , since = "CURRENT_RUSTC_VERSION " ) ]
168
168
#[ rustc_const_unstable( feature = "const_arguments_as_str" , issue = "103900" ) ]
169
169
#[ must_use]
170
170
#[ inline]
@@ -173,15 +173,15 @@ impl<'a> PanicMessage<'a> {
173
173
}
174
174
}
175
175
176
- #[ unstable ( feature = "panic_info_message" , issue = "66745 " ) ]
176
+ #[ stable ( feature = "panic_info_message" , since = "CURRENT_RUSTC_VERSION " ) ]
177
177
impl Display for PanicMessage < ' _ > {
178
178
#[ inline]
179
179
fn fmt ( & self , formatter : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
180
180
formatter. write_fmt ( self . message )
181
181
}
182
182
}
183
183
184
- #[ unstable ( feature = "panic_info_message" , issue = "66745 " ) ]
184
+ #[ stable ( feature = "panic_info_message" , since = "CURRENT_RUSTC_VERSION " ) ]
185
185
impl fmt:: Debug for PanicMessage < ' _ > {
186
186
#[ inline]
187
187
fn fmt ( & self , formatter : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
0 commit comments