about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-06-04 09:03:43 -0600
committerMark Rousskov <mark.simulacrum@gmail.com>2019-06-09 14:09:36 -0600
commitb1c357e0c366f5fb865151a9dd144413b4bf6911 (patch)
tree9c0c883525300d8ad063b6b3eba2f07f7740c7d5 /src/rustllvm/RustWrapper.cpp
parenta8594400927c7363d24625ea1521b89c344ec03d (diff)
downloadrust-b1c357e0c366f5fb865151a9dd144413b4bf6911.tar.gz
rust-b1c357e0c366f5fb865151a9dd144413b4bf6911.zip
Introduce InnerSpan abstraction
This should be used when trying to get at subsets of a larger span,
especially when the larger span is not available in the code attempting
to work with those subsets (especially common in the fmt_macros crate).

This is usually a good replacement for (BytePos, BytePos) and (usize,
usize) tuples.

This commit also removes from_inner_byte_pos, since it took usize
arguments, which is error prone.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions