Matthias Krüger e400311486
Rollup merge of #120322 - compiler-errors:higher-ranked-async-closures, r=oli-obk
Don't manually resolve async closures in `rustc_resolve`

There's a comment here that talks about doing this "[so] closure [args] are detected as upvars rather than normal closure arg usages", but we do upvar analysis on the HIR now:

cd6d8f2a04/compiler/rustc_passes/src/upvars.rs (L21-L29)

Removing this ad-hoc logic makes it so that `async |x: &str|` now introduces an implicit binder, like regular closures.

r? ```@oli-obk```
2024-01-26 06:36:39 +01:00
..
2024-01-24 00:41:45 +01:00
2024-01-13 12:46:58 -05:00
2024-01-05 10:00:59 +00:00
2024-01-16 09:25:28 +01:00
2024-01-13 12:46:58 -05:00
2023-12-20 22:53:56 -05:00
2024-01-23 15:10:23 +00:00
2024-01-13 12:46:58 -05:00
2024-01-23 15:23:22 +00:00
2024-01-13 12:46:58 -05:00
2024-01-23 15:10:23 +00:00
2024-01-24 07:56:23 +01:00
2024-01-13 12:46:58 -05:00
2023-12-23 00:09:37 +08:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-11 21:39:44 +08:00
2024-01-24 00:01:59 +08:00
2024-01-05 10:00:59 +00:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-23 21:16:24 +08:00
2024-01-16 09:25:28 +01:00
2024-01-13 12:46:58 -05:00
2024-01-23 21:16:24 +08:00
2024-01-05 09:30:27 +00:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-05 18:49:25 +01:00
2024-01-19 23:49:40 +00:00
2024-01-19 20:38:51 +00:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-24 00:41:45 +01:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-05 09:30:27 +00:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-05 10:56:59 +00:00
2024-01-24 07:56:23 +01:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-05 10:00:59 +00:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-24 00:41:45 +01:00
2024-01-22 14:24:31 +00:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-05 10:00:59 +00:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00
2024-01-13 12:46:58 -05:00