Skip to content

Commit 6b9bb74

Browse files
authored
Rollup merge of #66771 - SimonSapin:panic-stability, r=KodrAus
Stabilize the `core::panic` module `std::panic` is already stable. `core::panic::PanicInfo` and `core::panic::Location` are stable and can be used through that path because of a bug in stability checking: #15702
2 parents 1c12dc8 + eab1dc9 commit 6b9bb74

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/libcore/panic.rs

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! Panic support in the standard library.
22
3-
#![unstable(feature = "core_panic_info",
4-
reason = "newly available in libcore",
5-
issue = "44489")]
3+
#![stable(feature = "core_panic_info", since = "1.41.0")]
64

75
use crate::any::Any;
86
use crate::fmt;
@@ -39,10 +37,10 @@ pub struct PanicInfo<'a> {
3937
}
4038

4139
impl<'a> PanicInfo<'a> {
42-
#![unstable(feature = "panic_internals",
43-
reason = "internal details of the implementation of the `panic!` \
44-
and related macros",
45-
issue = "0")]
40+
#[unstable(feature = "panic_internals",
41+
reason = "internal details of the implementation of the `panic!` \
42+
and related macros",
43+
issue = "0")]
4644
#[doc(hidden)]
4745
#[inline]
4846
pub fn internal_constructor(
@@ -57,6 +55,10 @@ impl<'a> PanicInfo<'a> {
5755
}
5856
}
5957

58+
#[unstable(feature = "panic_internals",
59+
reason = "internal details of the implementation of the `panic!` \
60+
and related macros",
61+
issue = "0")]
6062
#[doc(hidden)]
6163
#[inline]
6264
pub fn set_payload(&mut self, info: &'a (dyn Any + Send)) {
@@ -90,7 +92,7 @@ impl<'a> PanicInfo<'a> {
9092
/// returns that message ready to be used for example with [`fmt::write`]
9193
///
9294
/// [`fmt::write`]: ../fmt/fn.write.html
93-
#[unstable(feature = "panic_info_message", issue = "44489")]
95+
#[unstable(feature = "panic_info_message", issue = "66745")]
9496
pub fn message(&self) -> Option<&fmt::Arguments<'_>> {
9597
self.message
9698
}

0 commit comments

Comments
 (0)