diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-04-29 11:27:56 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-29 11:27:56 +0530 |
| commit | 81910a1b21ecb05980df8d18970595c1729cc030 (patch) | |
| tree | 7e0605d54f2d79e843fcacde49c3c51ccd478f21 /compiler/rustc_codegen_cranelift/src/concurrency_limiter.rs | |
| parent | 7721c7319d84f1a639a61f4b931303bf24953c27 (diff) | |
| parent | 4e05cfb5ff5f6c27cc02ca76f7c4809c310371a4 (diff) | |
| download | rust-81910a1b21ecb05980df8d18970595c1729cc030.tar.gz rust-81910a1b21ecb05980df8d18970595c1729cc030.zip | |
Rollup merge of #110965 - compiler-errors:anon-lt-dupe-oops, r=cjgillot
Don't duplicate anonymous lifetimes for async fn in traits `record_lifetime_params_for_async` needs to be called outside of the scope of the function, or else it'll end up collecting anonymous lifetimes twice (those on the function and those within the `AnonymousCreateParameter` rib). This matches how `record_lifetime_params_for_async` is being used for functions with bodies below. This fixes (partially) #110963 when the lifetimes are late-bound, but does not do so when the lifetimes are early-bound (as seen from the known-bug that I added).
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/concurrency_limiter.rs')
0 files changed, 0 insertions, 0 deletions
