about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-25 16:48:20 +0200
committerGitHub <noreply@github.com>2024-07-25 16:48:20 +0200
commite76bb3fab618f7d75ab4467362abb35e66912c80 (patch)
tree8417303ffd189aa6f208cd79061c02d04e3414b7 /compiler/rustc_codegen_llvm/src/builder.rs
parentd1070df553d84d8409f890745a9fdb2eb10cbb64 (diff)
parent4b7a87de1094522c5c6e5a7bda04e0e0b281e049 (diff)
downloadrust-e76bb3fab618f7d75ab4467362abb35e66912c80.tar.gz
rust-e76bb3fab618f7d75ab4467362abb35e66912c80.zip
Rollup merge of #128138 - folkertdev:asm-option-allowlist, r=lcnr
`#[naked]`: use an allowlist for allowed options on `asm!` in naked functions

tracking issue: https://github.com/rust-lang/rust/issues/90957

this is mostly just a refactor, but using an allowlist (rather than a denylist) for which asm options are allowed in naked functions is a little safer.

These options are disallowed because naked functions are effectively global asm, but defined using inline asm.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions