Rust 1.46.0 pre-release testing

The pre-release for Rust 1.46.0 is now out! Check it out on the Inside Rust blog:

9 Likes

The release notes mention loop being available in const fns. What about while and for?

Aside from that, this update seems to be the biggest improvement to const fn, yet. :heart:

for involves IntoIterator and Iterator so is blocked till traits-in-const-fn are sorted out. while loops do appear to work.

4 Likes

Release notes say ' Rustc will now warn if you have a C-like enum that implements Drop ", but the linked issue only mentions casting such an enum to an int, and not the enum itself?

1 Like

A PR to fix this is at https://github.com/rust-lang/rust/pull/75996

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.