1
Fork 0
rust/compiler/rustc_infer/src
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
..
infer Rollup merge of #97023 - cjgillot:uniform-anon, r=estebank 2022-06-02 11:13:22 +02:00
traits Remove clone_code method 2022-05-10 10:42:29 +00:00
lib.rs Finish bumping stage0 2022-05-27 07:36:17 -04:00