about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorLieselotte <52315535+she3py@users.noreply.github.com>2024-09-14 12:41:25 +0200
committerLieselotte <52315535+she3py@users.noreply.github.com>2024-09-14 12:41:25 +0200
commit3d20c810b0be045d575b774b50df1824b147c3ba (patch)
tree9c0757ee6f699732c99e8cd3adf1c47afc95f045 /compiler/rustc_parse/src
parent003da02352a62310bc9f67db511244946f01dd4a (diff)
downloadrust-3d20c810b0be045d575b774b50df1824b147c3ba.tar.gz
rust-3d20c810b0be045d575b774b50df1824b147c3ba.zip
Fix `Parser::break_up_float`'s right span
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index 33e0a2f55b3..502f3cad761 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -1098,7 +1098,7 @@ impl<'a> Parser<'a> {
                     let dot_span = span
                         .with_lo(span.lo + ident1_len)
                         .with_hi(span.lo + ident1_len + BytePos(1));
-                    let ident2_span = self.token.span.with_lo(span.lo + ident1_len + BytePos(1));
+                    let ident2_span = span.with_lo(span.lo + ident1_len + BytePos(1));
                     (ident1_span, dot_span, ident2_span)
                 } else {
                     (span, span, span)