mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
455a20b7ba
Add const_closure, Constify Try trait Adds a struct for creating const `FnMut` closures (for now just copy pasted form my [const_closure](https://crates.io/crates/const_closure) crate). I'm not sure if this way is how it should be done. The `ConstFnClosure` and `ConstFnOnceClosure` structs can probably also be entirely removed. This is then used to constify the try trait. Not sure if i should add const_closure in its own pr and maybe make it public behind a perma-unstable feature gate. cc ```@fee1-dead``` ```@rust-lang/wg-const-eval```