rust/src/libsyntax
Corey Farwell 8d1c5700f0 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
2017-03-12 12:48:46 -04:00
..
diagnostics Use Symbol instead of InternedString in the AST, HIR, and various other places. 2016-11-21 09:00:55 +00:00
ext Rollup merge of #40369 - petrochenkov:segspan, r=eddyb 2017-03-12 12:48:46 -04:00
parse Rollup merge of #40369 - petrochenkov:segspan, r=eddyb 2017-03-12 12:48:46 -04:00
print Avoid using Mark and Invocation for macro defs. 2017-03-10 08:08:32 -08:00
util Refactor out ast::ItemKind::MacroDef. 2017-03-10 08:08:32 -08:00
abi.rs Add support for x86-interrupt calling convention 2017-03-02 19:01:15 +01:00
ast.rs Rollup merge of #40369 - petrochenkov:segspan, r=eddyb 2017-03-12 12:48:46 -04:00
attr.rs rustc_typeck: hook up collect and item/body check to on-demand. 2017-02-25 18:35:25 +02:00
Cargo.toml Bump version, upgrade bootstrap 2017-02-03 13:25:46 -08:00
codemap.rs Refactor TokenStream. 2017-01-22 21:37:38 +00:00
config.rs syntax: struct field attributes and cfg 2017-01-11 21:33:17 -08:00
diagnostic_list.rs Add long error explanations 2017-02-21 15:52:14 +01:00
entry.rs Cleanup InternedString. 2016-11-21 09:00:56 +00:00
feature_gate.rs Fix description of closure coercion feature 2017-03-04 14:31:34 +01:00
fold.rs Rollup merge of #40369 - petrochenkov:segspan, r=eddyb 2017-03-12 12:48:46 -04:00
json.rs Auto merge of #38955 - estebank:highlighted-diags, r=nikomatsakis 2017-01-20 09:33:10 +00:00
lib.rs Add syntax::ext::tt::quoted::{TokenTree, ..} and remove tokenstream::TokenTree::Sequence. 2017-02-28 22:14:29 +00:00
ptr.rs Documentation for default types modified 2016-09-11 22:58:01 +05:30
show_span.rs annotate stricter lifetimes on LateLintPass methods to allow them to forward to a Visitor 2016-12-06 11:28:51 +01:00
std_inject.rs Give spans to individual path segments in AST 2017-03-10 08:21:45 -08:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
symbol.rs Fix the fallout 2017-01-29 02:57:14 +03:00
test.rs Give spans to individual path segments in AST 2017-03-10 08:21:45 -08:00
test_snippet.rs Fix multiple labels when some don't have message 2017-01-20 21:15:24 -08:00
tokenstream.rs Fix fallout in unit tests. 2017-03-03 02:15:39 +00:00
visit.rs Refactor out ast::ItemKind::MacroDef. 2017-03-10 08:08:32 -08:00