Rust 1.72.0 released
Version
1.72.0 of the Rust compiler has been released. Changes include
improved diagnostics and the removal of a limit on const evaluation:
To prevent user-provided const evaluation from getting into a compile-time infinite loop or otherwise taking unbounded time at compile time, Rust previously limited the maximum number of statements run as part of any given constant evaluation. However, especially creative Rust code could hit these limits and produce a compiler error. Worse, whether code hit the limit could vary wildly based on libraries invoked by the user; if a library you invoked split a statement into two within one of its functions, your code could then fail to compile.Now, you can do an unlimited amount of const evaluation at compile time.
Posted Aug 25, 2023 18:54 UTC (Fri)
by proski (subscriber, #104)
[Link]
One feature I've been waiting for is finally in stable. The let-else construct is understood by rustfmt now and formatted properly.
Finally let-else formatting support