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-08 19:58:54 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2018-05-14 14:41:34 +1000
commite913d692117e57ea2908461865aa08037f0bd2b9 (patch)
treeb756de98b23cedccbf0fd731d3c7e71876960f5c /src/rustllvm/RustWrapper.cpp
parent444b770f4cd8d817e7b7fec683ea301620034d13 (diff)
downloadrust-e913d692117e57ea2908461865aa08037f0bd2b9.tar.gz
rust-e913d692117e57ea2908461865aa08037f0bd2b9.zip
Remove `StringReader::col`.
It only has a single use, within code handling indented block comments.
We can replace that with the new `FileMap::col_pos()`, which computes
the col position (BytePos instead of CharPos) based on the record of the
last newline char (which we already record).

This is actually an improvement, because
`trim_whitespace_prefix_and_push_line()` was using `col`, which is a
`CharPos`, as a slice index, which is a byte/char confusion.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions