about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
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
commit89a0cfe72afe047c699df3810e1ce5e4d9cb98b4 (patch)
tree8dd11cc66cae04d768306ccb8e6c7e625e25104d /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parentd730f27fc8ecaa0bb17d5f29a6bfc1f42f0ff552 (diff)
parent789ee88bd015fde4257464d0120ab57b0d744e0b (diff)
downloadrust-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 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions