Skip to content

Commit

Permalink
Add compile_error for panic=abort
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Nov 1, 2024
1 parent 9cc37e8 commit 845c5ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
//! lithium = "1"
//! ```
//!
//! If you break either of these two requirements, cargo will scream at you.
//!
//!
//! # Platform support
//!
Expand Down Expand Up @@ -161,6 +163,9 @@
reason = "XXX: remove when strict provenance is stabilized"
)]

#[cfg(panic = "abort")]
compile_error!("Using Lithium with panic = \"abort\" is unsupported");

extern crate alloc;

mod api;
Expand Down

0 comments on commit 845c5ee

Please sign in to comment.