Matthias Krüger
89a0cfe72a
Rollup merge of #127058 - compiler-errors:tighten-async-spans, r=oli-obk
...
Tighten `fn_decl_span` for async blocks
Tightens the span of `async {}` blocks in diagnostics, and subsequently async closures and async fns, by actually setting the `fn_decl_span` correctly. This is kinda a follow-up on #125078 , but it fixes the problem in a more general way.
I think the diagnostics are significantly improved, since we no longer have a bunch of overlapping spans. I'll point out one caveat where I think the diagnostic may get a bit more confusing, but where I don't think it matters.
r? ````@estebank```` or ````@oli-obk```` or someone else on wg-diag or compiler i dont really care lol
2024-06-28 08:34:10 +02:00
..
2024-06-25 15:51:35 +00:00
2024-06-12 15:49:10 +10:00
2024-06-27 15:19:08 -04:00
2024-06-12 15:49:10 +10:00
2024-06-27 15:19:08 -04:00
2024-06-26 07:50:21 +02:00
2024-06-27 15:19:08 -04:00
2024-06-18 15:42:11 +00:00
2024-06-12 15:49:10 +10:00
2024-06-25 18:03:00 +02:00
2024-06-27 15:19:08 -04:00
2024-06-23 00:36:33 -07:00
2024-06-20 09:23:20 +10:00
2024-06-25 18:23:41 +02:00
2024-06-28 08:34:07 +02:00
2024-06-22 17:39:01 +02:00
2024-06-27 05:44:47 +00:00
2024-06-12 15:49:10 +10:00
2024-06-25 09:35:53 +00:00
2024-06-12 11:10:50 +00:00
2024-06-12 15:49:10 +10:00
2024-06-26 17:00:46 +02:00
2024-06-27 02:06:19 -04:00
2024-06-28 08:34:07 +02:00
2024-06-12 15:49:10 +10:00
2024-06-20 09:23:20 +10:00
2024-06-12 15:49:10 +10:00
2024-06-25 15:51:35 +00:00
2024-06-26 07:50:20 +02:00
2024-06-23 18:31:47 -07:00
2024-06-26 07:50:18 +02:00
2024-06-12 15:49:10 +10:00
2024-06-12 15:49:10 +10:00
2024-06-16 14:08:25 +03:00
2024-06-25 18:03:01 +02:00
2024-06-27 22:24:36 +02:00
2024-06-12 15:49:10 +10:00
2024-06-25 17:22:22 +02:00
2024-06-25 18:06:22 +02:00
2024-06-27 05:44:47 +00:00
2024-06-12 10:11:41 +00:00
2024-06-18 15:42:11 +00:00
2024-06-21 19:00:18 -04:00
2024-06-28 08:34:07 +02:00
2024-06-25 21:33:44 +02:00
2024-06-21 18:02:05 -07:00
2024-06-27 02:06:18 -04:00
2024-06-18 15:42:11 +00:00
2024-06-25 17:36:52 -04:00
2024-06-27 15:19:08 -04:00
2024-06-12 15:49:10 +10:00
2024-06-27 02:06:18 -04:00
2024-06-23 04:28:42 -05:00
2024-06-17 10:09:27 +00:00
2024-06-19 08:47:55 +00:00
2024-06-25 15:51:35 +00:00
2024-06-27 15:19:08 -04:00
2024-06-24 11:28:21 -04:00
2024-06-12 15:49:10 +10:00
2024-06-28 08:34:07 +02:00
2024-06-28 13:24:41 +08:00
2024-06-28 08:34:07 +02:00
2024-06-18 15:42:11 +00:00
2024-06-24 17:58:21 +02:00
2024-06-25 05:09:30 +00:00
2024-06-12 15:49:10 +10:00
2024-06-14 21:11:08 +00:00
2024-06-16 21:35:21 -04:00
2024-06-25 00:33:49 +00:00
2024-06-28 13:24:41 +08:00