about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-19 17:05:08 +0000
committerbors <bors@rust-lang.org>2021-06-19 17:05:08 +0000
commit6b354a13820a444f834a33365ae4a8d97d7d27ce (patch)
treed214f382c147bd428359817863efec3056de32d0 /compiler/rustc_codegen_llvm/src/builder.rs
parent29cd70d40722930e66a8b726fe58a7bd1d64a22b (diff)
parent9c9a0da132f9da505d741a733713e3ad5861d84a (diff)
downloadrust-6b354a13820a444f834a33365ae4a8d97d7d27ce.tar.gz
rust-6b354a13820a444f834a33365ae4a8d97d7d27ce.zip
Auto merge of #86034 - nagisa:nagisa/rt-soundness, r=m-ou-se
Change entry point to 🛡️ against 💥 💥-payloads

Guard against panic payloads panicking within entrypoints, where it is
UB to do so.

Note that there are a number of tradeoffs to consider. For instance, I
considered guarding against accidental panics inside the `rt::init` and
`rt::cleanup` code as well, as it is not all that obvious these may not
panic, but doing so would mean that we initialize certain thread-local
slots unconditionally, which has its own problems.

Fixes #86030
r? `@m-ou-se`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions