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 fn
s. What about while
and for
?
Aside from that, this update seems to be the biggest improvement to const fn
, yet.
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.