Skip to content

Commit

Permalink
add comment about panic handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jul 29, 2024
1 parent bc4f313 commit cbb9862
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/tests/no_std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ fn _test() {
let _ = windows::core::ComObject::new(App);
}

// This panic handler will cause a build error if an indirect `std` dependency exists as `std`
// will include its own panic handler and conflict with this one.
#[cfg_attr(not(test), panic_handler)]
fn _panic(_: &core::panic::PanicInfo<'_>) -> ! {
loop {}
Expand Down

0 comments on commit cbb9862

Please sign in to comment.