The Rust Team has released Rust 1.83, an update to the memory-safe and thread-safe programming language that brings expanded capabilities for code running in const contexts. The Rust Team also announced that it is moving forward with the Rust 2024 edition, which introduces backwards-incompatible features such as gen blocks.
Developers with a previous edition of Rust installed via rustup can update to Rust 1.83 with the command rustup update stable.
With Rust 1.83, announced November 28, several large extensions are featured for const contexts. This refers to code the compiler evaluates at compile time: the initial value of const and static items, array lengths, enum discriminant values, const generic arguments, and functions callable from these contexts (const fn). Previously, const contexts except for the initializer expression of a static item were forbidden from referencing static items. This limitation has been lifted.