diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2025-06-29 01:31:53 +0200 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2025-06-29 04:56:28 +0200 |
| commit | f77fead0029921a23421020542e957fb1654c456 (patch) | |
| tree | 0f5b520bd86e75480021d7fe04239df67785dcc7 /compiler/rustc_parse/src | |
| parent | 7ba34c704529e7fcab80130c3fe40efe415d61b5 (diff) | |
| download | rust-f77fead0029921a23421020542e957fb1654c456.tar.gz rust-f77fead0029921a23421020542e957fb1654c456.zip | |
Fix the span of trait bound modifier `[const]`
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 f181097813d..d874a071cee 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -1071,7 +1071,7 @@ impl<'a> Parser<'a> { && self.look_ahead(1, |t| t.is_keyword(kw::Const)) && self.look_ahead(2, |t| *t == token::CloseBracket) { - let start = self.prev_token.span; + let start = self.token.span; self.bump(); self.expect_keyword(exp!(Const)).unwrap(); self.bump(); |
