diff options
| author | bors <bors@rust-lang.org> | 2024-07-16 13:38:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-16 13:38:39 +0000 |
| commit | 216bef36bccb67bcc4c0a4d7940f6dc84c4fac7b (patch) | |
| tree | 11e65227b6348995609411f581e100f97e9475b6 /compiler/rustc_parse/src/parser/path.rs | |
| parent | e5b1a2b3cd1e3a53b939e81a3eef1f4da924eb0f (diff) | |
| parent | 137c736d667dd500ddac47450df21ae9be345ba0 (diff) | |
| download | rust-216bef36bccb67bcc4c0a4d7940f6dc84c4fac7b.tar.gz rust-216bef36bccb67bcc4c0a4d7940f6dc84c4fac7b.zip | |
Auto merge of #17609 - lnicola:sync-from-rust, r=lnicola
minor: Sync from downstream
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/path.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs index 03c647dd527..b9014dea726 100644 --- a/compiler/rustc_parse/src/parser/path.rs +++ b/compiler/rustc_parse/src/parser/path.rs @@ -258,6 +258,7 @@ impl<'a> Parser<'a> { self.bump(); // bump past the colon self.dcx().emit_err(PathSingleColon { span: self.prev_token.span, + suggestion: self.prev_token.span.shrink_to_hi(), type_ascription: self .psess .unstable_features @@ -329,6 +330,7 @@ impl<'a> Parser<'a> { err.cancel(); err = self.dcx().create_err(PathSingleColon { span: self.token.span, + suggestion: self.prev_token.span.shrink_to_hi(), type_ascription: self .psess .unstable_features |
