Rust 1.83 permits mutation inside constant evaluation
engineeringrustconstreferenceslibrariesMutable references and additional library operations can now participate in compile-time computation. The result still has to satisfy the rules that keep constant values independent of mutable global state.