Navigation
Recherche
|
Rust 1.72.0 released
jeudi 24 août 2023, 17:20 , par 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/
|
56 sources (32 en français)
Date Actuelle
sam. 12 juil. - 20:18 CEST
|