about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-05-09 12:49:39 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2018-05-13 17:16:03 +1000
commit7a090fbe02b6b20f0dce8acf07a0328375f91d68 (patch)
treeb75e60117cb9b618b1cf3eb2f26a23802f87b63b /src/rustllvm/RustWrapper.cpp
parentb1aae607c56d26333589dc45daa20859950bf6e1 (diff)
downloadrust-7a090fbe02b6b20f0dce8acf07a0328375f91d68.tar.gz
rust-7a090fbe02b6b20f0dce8acf07a0328375f91d68.zip
Rename some stuff in `StringReader`.
- `source_text` becomes `src`, matching `FileMap::src`.

- `byte_offset()` becomes `src_index()`, which makes it clearer that
  it's an index into `src`. (Likewise for variables containing
  `byte_offset` in their name.) This function also now returns a `usize`
  instead of a `BytePos`, because every callsite immediately converted
  the `BytePos` to a `usize`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions