diff options
| author | bors <bors@rust-lang.org> | 2024-06-18 07:20:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-18 07:20:26 +0000 |
| commit | f873ae029e3ee2bbb8bc70a7ef3f1a06c22b0eac (patch) | |
| tree | 5b61c7f6253849192a9e518bccfce08a20c7cd56 /library/core/src/panic.rs | |
| parent | 737e42308c6e957575692965d73b17937f936f28 (diff) | |
| parent | 6c2507cab5711f94305841b43f6623ad80d7448b (diff) | |
| download | rust-f873ae029e3ee2bbb8bc70a7ef3f1a06c22b0eac.tar.gz rust-f873ae029e3ee2bbb8bc70a7ef3f1a06c22b0eac.zip | |
Auto merge of #126330 - m-ou-se:panic-message-type, r=Amanieu
Return opaque type from PanicInfo::message() This changes the return type of the (unstable) PanicInfo::message() method to an opaque type (that implements Display). This allows for a bit more flexibility in the future. See https://github.com/rust-lang/rust/issues/66745
Diffstat (limited to 'library/core/src/panic.rs')
| -rw-r--r-- | library/core/src/panic.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/panic.rs b/library/core/src/panic.rs index b5a0932221a..56ede02673c 100644 --- a/library/core/src/panic.rs +++ b/library/core/src/panic.rs @@ -12,6 +12,8 @@ use crate::any::Any; pub use self::location::Location; #[stable(feature = "panic_hooks", since = "1.10.0")] pub use self::panic_info::PanicInfo; +#[unstable(feature = "panic_info_message", issue = "66745")] +pub use self::panic_info::PanicMessage; #[stable(feature = "catch_unwind", since = "1.9.0")] pub use self::unwind_safe::{AssertUnwindSafe, RefUnwindSafe, UnwindSafe}; |
