Skip to content

Commit

Permalink
Expose PanicMessage
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Sep 25, 2024
1 parent 9b82998 commit d094550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sel4-panicking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use core::panic::Location;
use core::panic::{PanicInfo, UnwindSafe};

#[cfg(panic_info_message_stable)]
use core::panic::PanicMessage;
pub use core::panic::PanicMessage;

use cfg_if::cfg_if;

Expand All @@ -42,7 +42,7 @@ pub use hook::{set_hook, PanicHook};
pub use payload::{Payload, SmallPayload, UpcastIntoPayload, SMALL_PAYLOAD_MAX_SIZE};

#[cfg(not(panic_info_message_stable))]
type PanicMessage<'a> = &'a fmt::Arguments<'a>;
pub type PanicMessage<'a> = &'a fmt::Arguments<'a>;

pub struct ExternalPanicInfo<'a> {
payload: Payload,
Expand Down

0 comments on commit d094550

Please sign in to comment.