about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-09-21 22:40:51 -0700
committerGitHub <noreply@github.com>2016-09-21 22:40:51 -0700
commit6ad10844db51b950306d49070932562246e06616 (patch)
tree9f8c203f92a9d5f21d5c9f56f6cee01a6aec9e56 /src/rustllvm/RustWrapper.cpp
parent1cf592fa40ca4104b59b867817881ca056f408ad (diff)
parente4b18422ad3ee6bf1e749ccd337a25736a78c0bb (diff)
downloadrust-6ad10844db51b950306d49070932562246e06616.tar.gz
rust-6ad10844db51b950306d49070932562246e06616.zip
Auto merge of #36585 - jonathandturner:misc_error_touchups, r=nrc
Add the ability to merge spans to codemap

This PR adds the ability to merge Spans.  To do so, it builds on the Codemap's ability to verify the locations of spans, namely that following can be verified:

* the expn_id of both spans much match
* the lhs span needs to end on the same line the rhs span begins
* the lhs span must start at or before the rhs span

If all of these are met, a new span is returned that is min(lo), max(hi) of the two spans.

This PR also removes an older Span merge, as this new functionality subsumes it.

r? @nrc
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions