about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-06-28 08:57:32 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-06-29 11:31:43 +1000
commitb4c6e19adeffad05e6039c21fdbda2097f3a2485 (patch)
tree25f79abd78f368888307cfb06a2a85a77dccfd30 /compiler/rustc_span/src
parenta13be655a511c215cc4d1d120d981bfe80b04eec (diff)
downloadrust-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