about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-12 12:48:46 -0400
committerGitHub <noreply@github.com>2017-03-12 12:48:46 -0400
commit8d1c5700f08a657a15c317084f8807c82a6d8fd8 (patch)
treeabdbc4d3f992133c106c1ad7dbc13f5d44f9c44a /src/rustllvm/RustWrapper.cpp
parentf88b24b34c6d17ebe4014bec5a0f7c2a57c529c7 (diff)
parentffdcf7486656119328c3c6c1efef408abba3139f (diff)
downloadrust-8d1c5700f08a657a15c317084f8807c82a6d8fd8.tar.gz
rust-8d1c5700f08a657a15c317084f8807c82a6d8fd8.zip
Rollup merge of #40369 - petrochenkov:segspan, r=eddyb
Give spans to individual path segments in AST

And use these spans in path resolution diagnostics.

The spans are spans of identifiers in segments, not whole segments. I'm not sure what spans are more useful in general, but identifier spans are a better fit for resolve errors.

HIR still doesn't have spans.

Fixes https://github.com/rust-lang/rust/pull/38927#discussion_r95336667 https://github.com/rust-lang/rust/pull/38890#issuecomment-271731008

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