Skip to content

Commit

Permalink
Don't include __rust_drop_panic when testing libstd
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Jan 12, 2020
1 parent 3a02576 commit 8f60db8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/panicking.rs
Expand Up @@ -58,6 +58,7 @@ extern "C" {
/// This function is called by the panic runtime if FFI code catches a Rust
/// panic but doesn't rethrow it. We don't support this case since it messes
/// with our panic count.
#[cfg(not(test))]
#[rustc_std_internal_symbol]
extern "C" fn __rust_drop_panic() -> ! {
rtabort!("Rust panics must be rethrown");
Expand Down

0 comments on commit 8f60db8

Please sign in to comment.