Add f16 formatting and parsing by tgross35 · Pull Request #127013 · rust-lang/rust (original) (raw)

test-float-parse runs with stage0 so it can't use target_has_reliable_f16 until the next bootstrap bump happens. That's in ~1week so I'm just going to wait that out rather than trying to work around it.

Cc @bjorn3, the fourth patch uses cfg(target_has_reliable_f16) to select between the real implementations and a fallback. I really wasn't planning on using these in core/std but I can't think of a better way to add the implementations but keep things working with Cranelift (outside of aggressive inlining which likely wouldn't be great here).