diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-01-23 21:53:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-23 21:53:56 +0100 |
| commit | 6131ba62ad304d974caba5cad99319c853b6472f (patch) | |
| tree | 5487254b42f63242fe656577d13e0adef0dca880 /tests/codegen/integer-overflow.rs | |
| parent | 5da220a095f9e4ab46b7ea19ddfb7bbc7dd63e70 (diff) | |
| parent | f700ee4e709abb2243acd0fb8b9928160896c2bd (diff) | |
| download | rust-6131ba62ad304d974caba5cad99319c853b6472f.tar.gz rust-6131ba62ad304d974caba5cad99319c853b6472f.zip | |
Rollup merge of #120139 - compiler-errors:fnonce-shim, r=BoxyUwU
Do not normalize closure signature when building `FnOnce` shim It is not necessary to normalize the closure signature when building an `FnOnce` shim for an `Fn`/`FnMut` closure. That closure shim is just calling `FnMut::call_mut(&mut self)` anyways. It's also somewhat sketchy that we were ever doing this to begin with, since we're normalizing with a `ParamEnv::reveal_all()` param-env, which is definitely not right with possibly polymorphic substs. This cuts out a tiny bit of unnecessary work in `Instance::resolve` and simplifies the signature because now we can unconditionally return an `Instance`.
Diffstat (limited to 'tests/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions
