about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap_test.py
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-03-16 21:47:45 -0400
committerGitHub <noreply@github.com>2025-03-16 21:47:45 -0400
commit514405505509e410865dc8648bc2df7a0ca59749 (patch)
tree25a50bace09c9b3cf062f3d9b7d05eb83bff5db6 /src/bootstrap/bootstrap_test.py
parent6da26f7cfed691273e1d6e287a6d0aaa548a44bb (diff)
parentf20a6c70fb7a1b9bf1b855e6d1e711c1afd6bb48 (diff)
downloadrust-514405505509e410865dc8648bc2df7a0ca59749.tar.gz
rust-514405505509e410865dc8648bc2df7a0ca59749.zip
Rollup merge of #138573 - Noratrieb:no-unsound-bad-bonk-bonk, r=workingjubilee
Make `_Unwind_Action` a type alias, not enum

It's bitflags in practice, so an enum is unsound, as an enum must only have the described values. The x86_64 psABI declares it as a `typedef int _Unwind_Action`, which seems reasonable. I made a newtype first but that was more annoying than just a typedef. We don't really use this value for much other than a short check.

I ran `x check library --target aarch64-unknown-linux-gnu,x86_64-pc-windows-gnu,x86_64-fortanix-unknown-sgx,x86_64-unknown-haiku,x86_64-unknown-fuchsi
a,x86_64-unknown-freebsd,x86_64-unknown-dragonfly,x86_64-unknown-netbsd,x86_64-unknown-openbsd,x86_64-unknown-redox,riscv64-linux-android,armv7-unknown-freebsd` (and some more but they failed to build for other reasons :D)

fixes #138558

r? workingjubilee have fun
Diffstat (limited to 'src/bootstrap/bootstrap_test.py')
0 files changed, 0 insertions, 0 deletions