We've been tracking the location of a token in the file using a pair of numbers, but Rust has a better way: a Range
. After some debate and wandering, we make the code a little better with this change.
The interlude music is Blood, Collateral, & Otherwise by Hunk Golden, used under the Attribution 4.0 International License.
More info: https://artificialworlds.net/blog/2025/07/25/mini-rust-in-rust-039-span-as-range