This is a (perhaps a bit early) request to at least optionally generate Rust source code use const fn instead of fn.
Though current stable Rust doesn't support the use of mutable references in const fn, that's about to change with this stabilization PR: rust-lang/rust#129195
Once that PR lands, the existing emitted Rust code should be valid under const fn.
This is a (perhaps a bit early) request to at least optionally generate Rust source code use
const fninstead offn.Though current stable Rust doesn't support the use of mutable references in
const fn, that's about to change with this stabilization PR: rust-lang/rust#129195Once that PR lands, the existing emitted Rust code should be valid under
const fn.