The pre-release for Rust 1.46.0 is now out! Check it out on the Inside Rust blog:
The release notes mention
loop being available in
const fns. What about
Aside from that, this update seems to be the biggest improvement to
const fn, yet.
Iterator so is blocked till traits-in-const-fn are sorted out.
while loops do appear to work.
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?
A PR to fix this is at https://github.com/rust-lang/rust/pull/75996