about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-09-24 14:29:54 +0200
committerGitHub <noreply@github.com>2022-09-24 14:29:54 +0200
commit455a20b7ba567434cb5bf1c47ff06f6f1d9819fc (patch)
tree5e2978dd09dd3ad9b8f4aa89e0165a1fff4e6566 /compiler/rustc_codegen_gcc
parenteb628e867055c52f1864e19eb94854022fdf1640 (diff)
parent84666afb36365c3dafe0acfdcd17ea177f58af19 (diff)
downloadrust-455a20b7ba567434cb5bf1c47ff06f6f1d9819fc.tar.gz
rust-455a20b7ba567434cb5bf1c47ff06f6f1d9819fc.zip
Rollup merge of #102186 - ink-feather-org:const_try_trait, r=fee1-dead
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```
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions