mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
7432588e5d
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