]> git.lizzy.rs Git - rust.git/commit
std panicking: Provide panic::always_abort
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 20 Apr 2021 19:02:49 +0000 (20:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 7 May 2021 10:17:44 +0000 (11:17 +0100)
commit1b1bf2463619e23eba1b36b6d7df276ce73563dd
treef37787406be15b26ccf0c3116bc4ff9ac83da379
parenta9f43a2a8f845ac7be462cc5300da2350995c546
std panicking: Provide panic::always_abort

We must change the atomic read on panic entry to `Acquire`, to pick up
a possible an `always_panic` on another thread.

We add `count` to the names of panic_count::get and ::is_zaero,
because now there is another reason why panic ought to maybe abort.
Renaming these ensures that we have checked every call site to ensure
that they don't need further adjustment.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
library/std/src/panic.rs
library/std/src/panicking.rs