rust/src/libsyntax
bors c1a0b6d9eb Auto merge of #45503 - thombles:tk/i44339-v5, r=petrochenkov
Improve diagnostics when list of tokens has incorrect separators

Make `parse_seq_to_before_tokens` more resilient to error conditions. Where possible it is better if it can consume up to the final bracket before returning. This change improves the diagnostics in a couple of situations:

```
struct S(pub () ()); // omitted separator
use std::{foo. bar}; // used a similar but wrong separator
```

Fixes #44339
r? @petrochenkov
2017-10-28 03:02:17 +00:00
..
diagnostics Make fields of Span private 2017-08-30 01:38:54 +03:00
ext Lifting Generics from MethodSig to TraitItem and ImplItem since we want to support generics in each variant of TraitItem and ImplItem 2017-10-17 22:14:14 -04:00
parse Auto merge of #45503 - thombles:tk/i44339-v5, r=petrochenkov 2017-10-28 03:02:17 +00:00
print Auto merge of #45401 - zackmdavis:crate_shorthand_visibility_modifier, r=nikomatsakis 2017-10-24 12:24:16 +00:00
util Add support for ..= syntax 2017-09-22 22:05:18 +02:00
abi.rs add thiscall calling convention support 2017-05-24 16:40:03 -04:00
ast.rs Auto merge of #45401 - zackmdavis:crate_shorthand_visibility_modifier, r=nikomatsakis 2017-10-24 12:24:16 +00:00
attr.rs Fix ICE 2017-09-20 20:48:06 +02:00
build.rs rustc: Add some build scripts for librustc crates 2017-07-22 22:04:13 -07:00
Cargo.toml Remove rustc_bitflags; use the bitflags crate 2017-09-17 14:19:24 -04:00
codemap.rs code suggestion for non-shorthand field patterns lint 2017-10-16 11:19:18 -07:00
config.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
diagnostic_list.rs Add support for ..= syntax 2017-09-22 22:05:18 +02:00
entry.rs Cleanup InternedString. 2016-11-21 09:00:56 +00:00
feature_gate.rs Auto merge of #45401 - zackmdavis:crate_shorthand_visibility_modifier, r=nikomatsakis 2017-10-24 12:24:16 +00:00
fold.rs Lifting Generics from MethodSig to TraitItem and ImplItem since we want to support generics in each variant of TraitItem and ImplItem 2017-10-17 22:14:14 -04:00
json.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
lib.rs Remove rustc_bitflags; use the bitflags crate 2017-09-17 14:19:24 -04:00
ptr.rs Replace some matches with try. 2017-06-07 12:15:39 +09:00
README.md rework the README.md for rustc and add other readmes 2017-09-19 09:00:59 -04:00
show_span.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
std_inject.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
test_snippet.rs Add short message-format 2017-10-20 16:04:32 +02:00
tokenstream.rs Make fields of Span private 2017-08-30 01:38:54 +03:00
visit.rs Auto merge of #45464 - sinkuu:ice_44851, r=jseyfried 2017-10-26 04:32:16 +00:00

NB: This crate is part of the Rust compiler. For an overview of the compiler as a whole, see the README.md file found in librustc.

The syntax crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.