Skip to content

Commit 8f60db8

Browse files
committed
Don't include __rust_drop_panic when testing libstd
1 parent 3a02576 commit 8f60db8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/panicking.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ extern "C" {
5858
/// This function is called by the panic runtime if FFI code catches a Rust
5959
/// panic but doesn't rethrow it. We don't support this case since it messes
6060
/// with our panic count.
61+
#[cfg(not(test))]
6162
#[rustc_std_internal_symbol]
6263
extern "C" fn __rust_drop_panic() -> ! {
6364
rtabort!("Rust panics must be rethrown");

0 commit comments

Comments
 (0)