about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-23 02:48:13 +0000
committerbors <bors@rust-lang.org>2021-04-23 02:48:13 +0000
commitcb81dc535c453ed6e0368fe7b8336ba177950a2d (patch)
tree30f499a1cd5d6aee4cc4ea5285ca61d5f35ffb60 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentf4a8cf0a00580eeb093774681db74e5f2ba57c85 (diff)
parentfa1624cf135b141c1e4a524d7e001a727b305755 (diff)
downloadrust-cb81dc535c453ed6e0368fe7b8336ba177950a2d.tar.gz
rust-cb81dc535c453ed6e0368fe7b8336ba177950a2d.zip
Auto merge of #82585 - TrolledWoods:master, r=dtolnay
Added CharIndices::offset function

The CharIndices iterator has a field internally called front_offset, that I think would be very useful to have access to.

You can already do something like ``char_indices.next().map(|(offset, _)| offset)``, but that is wordy, in addition to not handling the case where the iterator has ended, where you'd want the offset to be equal to the length.

I'm very new to the open source world and the rust repository, so I'm sorry if I missed a step or did something weird.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions