diff options
| author | Michael Goulet <michael@errs.io> | 2023-09-30 19:29:41 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-10-04 21:09:54 +0000 |
| commit | 137b6d0b01e880b8a8163cd7a14141afc080a9ee (patch) | |
| tree | 51b3d799bd6813874b7c58fcba4103c50b43246b /compiler/rustc_parse/src | |
| parent | eea26141ec2bf07a825011af841463dec51a04c9 (diff) | |
| download | rust-137b6d0b01e880b8a8163cd7a14141afc080a9ee.tar.gz rust-137b6d0b01e880b8a8163cd7a14141afc080a9ee.zip | |
Point to where missing return type should go
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs index a25b0f1f893..0a64b2f806a 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -247,7 +247,7 @@ impl<'a> Parser<'a> { )?; FnRetTy::Ty(ty) } else { - FnRetTy::Default(self.token.span.shrink_to_lo()) + FnRetTy::Default(self.prev_token.span.shrink_to_hi()) }) } |
