rust-clippy/clippy_utils
Matthias Krüger fb95df70a7 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
..
src Rollup merge of #127058 - compiler-errors:tighten-async-spans, r=oli-obk 2024-06-28 08:34:10 +02:00
Cargo.toml Resolve Clippy f16 and f128 unimplemented!/FIXMEs 2024-06-19 13:30:21 -04:00