]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #105998 - RalfJung:no-unwind-panic-msg, r=thomcc
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 28 Dec 2022 21:22:21 +0000 (22:22 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Dec 2022 21:22:21 +0000 (22:22 +0100)
adjust message on non-unwinding panic

"thread panicked while panicking" is just plain wrong in case this is a non-unwinding panic, such as
- a panic out of a `nounwind` function
- the sanity checks we have in `mem::uninitialized` and `mem::zeroed`
- the optional debug assertion in various unsafe std library functions


Trivial merge