Fix the span of trait bound modifier [const]

This commit is contained in:
León Orell Valerian Liehr
2025-06-29 01:31:53 +02:00
parent 7ba34c7045
commit f77fead002
31 changed files with 268 additions and 268 deletions

View File

@@ -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();