diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-06-28 08:57:32 +1000 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-06-29 11:31:43 +1000 | 
| commit | b4c6e19adeffad05e6039c21fdbda2097f3a2485 (patch) | |
| tree | 25f79abd78f368888307cfb06a2a85a77dccfd30 /compiler/rustc_span/src | |
| parent | a13be655a511c215cc4d1d120d981bfe80b04eec (diff) | |
| download | rust-b4c6e19adeffad05e6039c21fdbda2097f3a2485.tar.gz rust-b4c6e19adeffad05e6039c21fdbda2097f3a2485.zip | |
Replace a `lookup_debug_loc` call.
`lookup_debug_loc` finds a file, line, and column, which requires two binary searches. But this call site only needs the file. This commit replaces the call with `lookup_source_file`, which does a single binary search.
Diffstat (limited to 'compiler/rustc_span/src')
0 files changed, 0 insertions, 0 deletions
