Jubilee cfce3a919d
Rollup merge of #116296 - compiler-errors:default-return, r=estebank
More accurately point to where default return type should go

When getting the "default return type" span, instead of pointing to the low span of the next token, point to the high span of the previous token. This:

1. Makes forming return type suggestions more uniform, since we expect them all in the same place.
2. Arguably makes labels easier to understand, since we're pointing to where the implicit `-> ()` would've gone, rather than the starting brace or the semicolon.

r? ```@estebank```
2023-10-05 00:56:29 -07:00
..
2023-10-03 00:37:18 +00:00
2023-09-07 01:31:33 +00:00
2023-10-03 00:37:18 +00:00
2023-10-03 00:37:18 +00:00
2023-10-03 00:37:18 +00:00
2023-10-03 00:37:18 +00:00
2023-10-03 00:37:18 +00:00
2023-10-03 00:37:18 +00:00