rust/compiler/rustc_feature/src
Stuart Cook f90cc353b8
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
2025-09-04 10:01:55 +10:00
..
accepted.rs stabilize extended_varargs_abi_support 2025-09-02 08:48:12 +02:00
builtin_attrs.rs Add an experimental unsafe(force_target_feature) attribute. 2025-08-22 01:26:26 +02:00
lib.rs Remove rustc_feature::Stability 2025-06-09 11:44:52 +02:00
removed.rs Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
tests.rs rustc_feature: Avoid unsafe std::env::set_var() in UnstableFeatures tests 2025-01-08 11:37:19 +01:00
unstable.rs Rollup merge of #145932 - JamieCunliffe:target-feature-inlining, r=jackh726 2025-09-04 10:01:55 +10:00