about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-04-11 22:38:53 +0200
committerGitHub <noreply@github.com>2024-04-11 22:38:53 +0200
commit1e99af514b68d0ff6891fa3cb6a9946c3888caef (patch)
tree9a0e27ae2496b1dceefca827032c57c25ab763b9 /compiler/rustc_codegen_gcc
parentaa6a697a1c75b0aa06954136f7641706edadc2be (diff)
parentc2e5ee40b699608128654f2b67e0fafa8e1ec8dc (diff)
downloadrust-1e99af514b68d0ff6891fa3cb6a9946c3888caef.tar.gz
rust-1e99af514b68d0ff6891fa3cb6a9946c3888caef.zip
Rollup merge of #122882 - Zoxc:panic-output-panic, r=Amanieu
Avoid a panic in `set_output_capture` in the default panic handler

This avoid a panic in the default panic handler by not using `set_output_capture` as `OUTPUT_CAPTURE.with` may panic once `OUTPUT_CAPTURE` is dropped.

A new non-panicking `try_set_output_capture` variant of `set_output_capture` is added for use in the default panic handler.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions