Article 6E4H6 Rust 1.72.0 released

Rust 1.72.0 released

by
corbet
from LWN.net on (#6E4H6)
Version1.72.0 of the Rust compiler has been released. Changes includeimproved diagnostics and the removal of a limit on const evaluation:

To prevent user-provided const evaluation from getting into acompile-time infinite loop or otherwise taking unbounded time atcompile time, Rust previously limited the maximum number ofstatements run as part of any given constant evaluation. However,especially creative Rust code could hit these limits and produce acompiler error. Worse, whether code hit the limit could vary wildlybased on libraries invoked by the user; if a library you invokedsplit a statement into two within one of its functions, your codecould then fail to compile.

Now, you can do an unlimited amount of const evaluation at compiletime.

External Content
Source RSS or Atom Feed
Feed Location http://lwn.net/headlines/rss
Feed Title LWN.net
Feed Link https://lwn.net/
Reply 0 comments