Added a shim around rust_panic to update panic counter

This commit is contained in:
Nikhil Shagrithaya
2016-07-20 18:35:25 +05:30
parent 221000abbe
commit 00b1e88680
2 changed files with 11 additions and 1 deletions

View File

@@ -340,5 +340,5 @@ pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
/// ```
#[stable(feature = "resume_unwind", since = "1.9.0")]
pub fn resume_unwind(payload: Box<Any + Send>) -> ! {
panicking::rust_panic(payload)
panicking::update_count_then_panic(payload)
}