mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 03:36:21 +00:00

If we want to know whether two byte positions are in the same file, we don't need to clone and compare `Lrc<SourceFile>`; we can just get their indices and compare those instead.