about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-28 08:34:10 +0200
committerGitHub <noreply@github.com>2024-06-28 08:34:10 +0200
commitfb95df70a7bbdbf1e93660b642a4e1e65d2c5bdd (patch)
treebe6d170a8e18fc1a20434209c356de6a41934869 /compiler/rustc_codegen_gcc
parentabdd057163e638da1ba8e0cae316348579fab9e9 (diff)
parent39a215531cc975d4dd50486f9d71187bdfad1086 (diff)
downloadrust-fb95df70a7bbdbf1e93660b642a4e1e65d2c5bdd.tar.gz
rust-fb95df70a7bbdbf1e93660b642a4e1e65d2c5bdd.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_gcc')
0 files changed, 0 insertions, 0 deletions