]> git.lizzy.rs Git - rust.git/commit
Explicitly count the number of panics
authorAndrea Canciani <ranma42@gmail.com>
Thu, 24 Sep 2015 21:49:38 +0000 (23:49 +0200)
committerAndrea Canciani <ranma42@gmail.com>
Thu, 24 Sep 2015 21:49:38 +0000 (23:49 +0200)
commitc7b84909b00dcf5f762778b4aa9783770c69416d
tree0a437b3fff3d718e04267f2523266fcf039d1432
parent44d1b149d2831192503a7797b98f108a3b5b1032
Explicitly count the number of panics

Move the panic handling logic from the `unwind` module to `panicking`
and use a panic counter to distinguish between normal state, panics
and double panics.
src/libstd/panicking.rs
src/libstd/sys/common/unwind/mod.rs