Rust 1.83 introduces new const capabilities, new stable functions, and stabilized APIs
The Rust team has announced the release of version 1.83 of the Rust programming language. This update introduces significant extensions to const contexts, allowing more code to be evaluated at compile-time. Previously, const contexts were restricted from referencing static items, except in static item initializer expressions. This restriction has been lifted, although reading mutable or interior mutable statics in const contexts remains prohibited. The final value of a constant cannot reference mutable statics, ensuring consistency throughout program execution.
Additionally, this release includes a range of new functions that are now stable in const contexts. These enhancements open up new possibilities for code execution within const contexts, and the Rust team is eager to see how developers will leverage these capabilities in the ecosystem.