about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-21 15:48:52 +0100
committerGitHub <noreply@github.com>2025-03-21 15:48:52 +0100
commitc354a97bd99a046df14ab18509a0d6a665eeed2a (patch)
tree95b30c8502859469f3e91b6fa9ea87a32b5b3a99 /compiler/rustc_builtin_macros/src
parentf7f287077b3490ecab413256d7601ddc224d4d84 (diff)
parentc26142697c417010fe338dddd2b771af872d02ba (diff)
downloadrust-c354a97bd99a046df14ab18509a0d6a665eeed2a.tar.gz
rust-c354a97bd99a046df14ab18509a0d6a665eeed2a.zip
Rollup merge of #138570 - folkertdev:naked-function-target-feature-gate, r=Amanieu
add `naked_functions_target_feature` unstable feature

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

tagging https://github.com/rust-lang/rust/pull/134213 https://github.com/rust-lang/rust/issues/90957

This PR puts `#[target_feature(/* ... */)]` on `#[naked]` functions behind its own feature gate, so that naked functions can be stabilized. It turns out that supporting `target_feature` on naked functions is tricky on some targets, so we're splitting it out to not block stabilization of naked functions themselves. See the tracking issue for more information and workarounds.

Note that at the time of writing, the `target_features` attribute is ignored when generating code for naked functions.

r? ``@Amanieu``
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
0 files changed, 0 insertions, 0 deletions