Regression in nightly-2022-01-15, possibly due to #89861
Commits in range
```
commit[0] 2022-01-13UTC: Auto merge of #89861 - nbdd0121:closure, r=wesleywiser
commit[1] 2022-01-14UTC: Auto merge of #92844 - matthiaskrgr:rollup-z5wb6yi, r=matthiaskrgr
commit[2] 2022-01-14UTC: Auto merge of #92781 - lambinoo:I-92755-no-mir-missing-reachable, r=petrochenkov
commit[3] 2022-01-14UTC: Auto merge of #92681 - Aaron1011:task-deps-ref, r=cjgillot
commit[4] 2022-01-14UTC: Auto merge of #92883 - matthiaskrgr:rollup-uoudywx, r=matthiaskrgr
```
Found with a modified fuzz-rustc
Code
The ICE occurs with
--edition=2021
but not with--edition=2018
Error output
error[E0666]: nested
impl Trait
is not allowederror[E0562]:
impl Trait
only allowed in function and inherent method argument and return types, not inFn
trait paramsthread 'rustc' panicked at compiler/rustc_mir_build/src/build/expr/as_place.rs:253:31: called
Option::unwrap()
on aNone
valueFull output including backtrace
``` error[E0666]: nested `impl Trait` is not allowed --> src/main.rs:3:19 | 3 | fn f() -> impl Fn(impl T) { | --------^^^^^^- | | | | | nested `impl Trait` here | outer `impl Trait` error[E0562]: `impl Trait` only allowed in function and inherent method argument and return types, not in `Fn` trait params --> src/main.rs:3:19 | 3 | fn f() -> impl Fn(impl T) { | ^^^^^^ thread 'rustc' panicked at compiler/rustc_mir_build/src/build/expr/as_place.rs:253:31: called `Option::unwrap()` on a `None` value stack backtrace: 0: 0x101ba629b -Regression
Regression in nightly-2022-01-15, possibly due to #89861
Commits in range
``` commit[0] 2022-01-13UTC: Auto merge of #89861 - nbdd0121:closure, r=wesleywiser commit[1] 2022-01-14UTC: Auto merge of #92844 - matthiaskrgr:rollup-z5wb6yi, r=matthiaskrgr commit[2] 2022-01-14UTC: Auto merge of #92781 - lambinoo:I-92755-no-mir-missing-reachable, r=petrochenkov commit[3] 2022-01-14UTC: Auto merge of #92681 - Aaron1011:task-deps-ref, r=cjgillot commit[4] 2022-01-14UTC: Auto merge of #92883 - matthiaskrgr:rollup-uoudywx, r=matthiaskrgr ```Version