We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41fd137 commit 8c4fe8dCopy full SHA for 8c4fe8d
1 file changed
src/lib.rs
@@ -322,7 +322,7 @@ fn get_api() -> &'static Api {
322
unsafe { ptr.as_ref().unwrap() }
323
}
324
325
-#[cfg(feature = "fancy-panic")]
+#[cfg(all(feature = "fancy-panic", not(test)))]
326
#[inline(never)]
327
#[panic_handler]
328
fn panic(info: &core::panic::PanicInfo) -> ! {
@@ -332,7 +332,7 @@ fn panic(info: &core::panic::PanicInfo) -> ! {
332
loop {}
333
334
335
-#[cfg(not(feature = "fancy-panic"))]
+#[cfg(all(not(feature = "fancy-panic"), not(test)))]
336
337
338
fn panic(_info: &core::panic::PanicInfo) -> ! {
0 commit comments