Skip to content

Add panic_nounwind! macro

Choose a tag to compare

@Techcable Techcable released this 19 Dec 02:23
· 36 commits to master since this release
0a3fb3a

The panic_nounwind! error message provides superior error messages to nounwind::abort_unwind(|| panic!()). The latter prints two panic messages and a confusing backtrace.

These improved error messages require the std feature to be enabled. In the next version of nounwind (v0.2.0), the std feature will be enabled by default.

Change the libabort feature to be an optional dependency enabled by the old-rust-nostd feature (on by default). If the std feature is enabled, old versions of Rust can still be supported without needing old-rust-nostd.

No changes to nounwind-macros since v0.1.1. This version was mistakenly released as nounwind v0.1.1. I later yanked it when I realized I already released nounwind-macros v0.1.1.