rust/compiler/rustc_hir
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
..
src Rollup merge of #97023 - cjgillot:uniform-anon, r=estebank 2022-06-02 11:13:22 +02:00
Cargo.toml span: move MultiSpan 2022-04-05 07:01:00 +01:00