rust/compiler/rustc_middle
Dylan DPC 5c041f98fa
Rollup merge of #97023 - cjgillot:uniform-anon, r=estebank
Diagnose anonymous lifetimes errors more uniformly between async and regular fns

Async fns and regular fns are desugared differently.  For the former, we create a generic parameter at HIR level.  For the latter, we just create an anonymous region for typeck.

I plan to migrate regular fns to the async fn desugaring.

Before that, this PR attempts to merge the diagnostics for both cases.

r? ```@estebank```
2022-06-02 11:13:22 +02:00
..
benches
src Rollup merge of #97023 - cjgillot:uniform-anon, r=estebank 2022-06-02 11:13:22 +02:00
Cargo.toml Update to rebased rustc-rayon 0.4 2022-05-27 20:20:41 -07:00
README.md

For more information about how rustc works, see the rustc dev guide.