You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Just ran into a usecase for this: generating a const lookup table from another array.
My workaround for stable Rust was some ugly code involving a new array whose elements I completely replace in a while loop.
Given that array::try_from_fn (#89379) and array::try_map (#79711) are both still unstable in non-const contexts I would personally like to only try to stabilise const array::from_fn and array::map.
Kind of new to this, is there anything preventing this from proceeding to FCP?
This feature is kind of very far from stabilization, as it depends, primarily, on #143874, which is not very close to stabilization, and not only that but to be useful it requires #106003. To use this on stable you'd have to use some macro based solution.
Activity
bend-n commentedon Feb 7, 2026
@rustbot label -S-tracking-unimplemented
syberant commentedon Aug 27, 2026
Hi! Just ran into a usecase for this: generating a
constlookup table from another array.My workaround for stable Rust was some ugly code involving a new array whose elements I completely replace in a while loop.
Given that
array::try_from_fn(#89379) andarray::try_map(#79711) are both still unstable in non-const contexts I would personally like to only try to stabilise constarray::from_fnandarray::map.Kind of new to this, is there anything preventing this from proceeding to FCP?
bend-n commentedon Aug 27, 2026
This feature is kind of very far from stabilization, as it depends, primarily, on #143874, which is not very close to stabilization, and not only that but to be useful it requires #106003. To use this on stable you'd have to use some macro based solution.