Don't include __rust_drop_panic when testing libstd

This commit is contained in:
Amanieu d'Antras 2020-01-12 16:59:44 +00:00
parent 3a025760be
commit 8f60db8da8

View file

@ -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");