diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-06-28 08:34:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-28 08:34:10 +0200 |
| commit | 89a0cfe72afe047c699df3810e1ce5e4d9cb98b4 (patch) | |
| tree | 8dd11cc66cae04d768306ccb8e6c7e625e25104d /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | d730f27fc8ecaa0bb17d5f29a6bfc1f42f0ff552 (diff) | |
| parent | 789ee88bd015fde4257464d0120ab57b0d744e0b (diff) | |
| download | rust-89a0cfe72afe047c699df3810e1ce5e4d9cb98b4.tar.gz rust-89a0cfe72afe047c699df3810e1ce5e4d9cb98b4.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
