Files
rust/compiler/rustc_public/src
Jacob Pratt f65144191d Rollup merge of #159472 - hkalbasi:rustc_public_float, r=celinval
Support creating float constants in rustc_public mir

This PR adds a `try_from_float` similar to `try_from_uint` to the `rustc_public::ty::MirConst`.

It takes `u128` and users need a `.to_bits() as u128` to call this function. I did this because `f64` couldn't capture a `f128` const completely, and `f128` needs to cast and a branch on the input types, making the code complex. Another alternative is adding 4 functions `try_from_f16` to `try_from_f128`, which I don't like, but that's also an option.
2026-07-20 23:38:04 -04:00
..
2026-07-13 14:20:37 +00:00
2025-12-14 17:25:53 +00:00
2025-07-18 18:49:12 +00:00
…
…
2025-12-14 17:25:53 +00:00