about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/base.rs
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-09-04 10:01:55 +1000
committerGitHub <noreply@github.com>2025-09-04 10:01:55 +1000
commitf90cc353b808d9a1a1e6cc9748dc10e7a20ee211 (patch)
tree50cd1dd0d1ecc456b3b973999e322f608c39d9a1 /compiler/rustc_codegen_ssa/src/base.rs
parent3a6ae1167f56516fc0de1d304fcb9163cea0cb40 (diff)
parentbcfc9b5073a92bbb4b1e4db2eab535357d8973ad (diff)
downloadrust-f90cc353b808d9a1a1e6cc9748dc10e7a20ee211.tar.gz
rust-f90cc353b808d9a1a1e6cc9748dc10e7a20ee211.zip
Rollup merge of #145932 - JamieCunliffe:target-feature-inlining, r=jackh726
Allow `inline(always)` with a target feature behind a unstable feature `target_feature_inline_always`.

Rather than adding the inline always attribute to the function definition, we add it to the callsite. We can then check that the target features match and that the call would be safe to inline. If the function isn't inlined due to a mismatch, we emit a warning informing the user that the function can't be inlined due to the target feature mismatch.

See tracking issue rust-lang/rust#145574
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/base.rs')
0 files changed, 0 insertions, 0 deletions