rust/compiler/rustc_span
Jonathan Brouwer 329353e42c
Rollup merge of #151455 - eggyal:normalized-byte-pos, r=cjgillot
Fix `SourceFile::normalized_byte_pos`

This method was broken by 258ace6, which changed `self.normalized_pos` to use relative offsets however this method continued to compare against an absolute offset.

Also adds a regression test for the issue that this method was originally introduced to fix.

Closes rust-lang/rust#149568
Fixes regression of rust-lang/rust#110885

r? cjgillot (as author of the breaking commit)
2026-02-08 19:15:24 +01:00
..
src Rollup merge of #151455 - eggyal:normalized-byte-pos, r=cjgillot 2026-02-08 19:15:24 +01:00
Cargo.toml parser/lexer: bump to Unicode 17, use faster unicode-ident 2025-12-27 11:20:24 +01:00