diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-05-01 01:09:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 01:09:47 +0200 |
commit | 1b262b8b5660bc70530f647822b477a8d56e1f4e (patch) | |
tree | 41299c6d6c037d6b6addf13a984f9220fba45cd0 /tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr | |
parent | 9ecda8de85ce893cc3fc748ab06be0b8250147a7 (diff) | |
parent | 6d6c90443182e18fb23c08cd2d97dae701d7b453 (diff) | |
download | rust-1b262b8b5660bc70530f647822b477a8d56e1f4e.tar.gz |
Rollup merge of #110823 - compiler-errors:tweak-await-span, r=b-naber
Tweak await span to not contain dot
Fixes a discrepancy between method calls and await expressions where the latter are desugared to have a span that *contains* the dot (i.e. `.await`) but method call identifiers don't contain the dot. This leads to weird suggestions suggestions in borrowck -- see linked issue.
Fixes #110761
This mostly touches a bunch of tests to tighten their `await` span.
Diffstat (limited to 'tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr')
-rw-r--r-- | tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr b/tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr index 180e187c1b0..348880b9c9f 100644 --- a/tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr +++ b/tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr @@ -5,7 +5,7 @@ LL | let guard = &mut self.u; | ^^^^^ LL | LL | other().await; - | ------ the value is held across this suspend point + | ----- the value is held across this suspend point | note: You gotta use Umm's, ya know? --> $DIR/ref-drop-tracking.rs:19:13 |