mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
No longer auto-inline `f16` and `f128` on well-supported platforms
In 5d818914af ("Always inline functions signatures containing `f16` or `f128`"), these types were changed to automatically inline so codegen wouldn't crash on poorly-supported platforms. We have since gained a cfg to reflect the type's codegen reliability. Update so we only check and auto-inline based on type if this config is set, which makes `f16` and `f128` act more like any other type on most platforms.
We still can't remove this entirely since a lot of API in `std` wouldn't get inlined and would crash the few remaining poorly-supported backend+target combinations.
Followup to https://github.com/rust-lang/rust/pull/133050.