mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 07:25:31 +00:00
Make char conversion functions unstably const The char conversion functions like `char::from_u32` do trivial computations and can easily be converted into const fns. Only smaller tricks are needed to avoid non-const standard library functions like `Result::ok` or `bool::then_some`. Tracking issue: https://github.com/rust-lang/rust/issues/89259