Navigation
Search
|
Rust 1.72.0 released
Thursday August 24, 2023. 05:20 PM , from LWN.net
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.
https://lwn.net/Articles/942656/
|
25 sources
Current Date
May, Tue 21 - 06:04 CEST
|