rust/src/libsyntax
bors 35aeecb8aa Auto merge of #51201 - estebank:dotdot, r=petrochenkov
Accept `..` in incorrect position to avoid further errors

We currently give a specific message when encountering a `..` anywhere
other than the end of a pattern. Modify the parser to accept it (while
still emitting the error) so that we don't also trigger "missing fields
in pattern" errors afterwards.

Add suggestions to either remove trailing `,` or moving the `..` to the
end.

Follow up to #49268.
2018-06-06 14:04:06 +00:00
..
diagnostics Add Ident::as_str helper 2018-05-26 15:20:23 +03:00
ext resolve: Make sure indeterminate and inconsistent macro resolutions always generate errors 2018-05-30 22:21:50 +03:00
parse Auto merge of #51201 - estebank:dotdot, r=petrochenkov 2018-06-06 14:04:06 +00:00
print Auto merge of #51072 - petrochenkov:ifield, r=eddyb 2018-05-26 16:56:22 +00:00
util restore emplacement syntax (obsolete) 2018-05-24 18:49:58 -04:00
ast.rs Auto merge of #51052 - nikomatsakis:obsolete-arrow, r=petrochenkov 2018-05-26 14:30:30 +00:00
attr.rs suggestion applicabilities for libsyntax and librustc, run-rustfix tests 2018-05-20 14:13:25 -07:00
build.rs
Cargo.toml rustc_target: move in syntax::abi and flip dependency. 2018-04-26 17:49:16 +03:00
codemap.rs Satisfy tidy 2018-05-21 18:43:11 +02:00
config.rs Rename ast::Variant_::name into ident + Fix rebase 2018-04-06 11:48:19 +03:00
diagnostic_list.rs Auto merge of #50030 - flip1995:rfc2103, r=petrochenkov 2018-05-03 11:52:03 +00:00
entry.rs
feature_gate.rs Put doc keyword behind feature flag 2018-06-04 09:52:31 +02:00
fold.rs syntax: remove overloading of fold_lifetime{,_def}{,s}. 2018-05-30 20:29:38 +03:00
json.rs Stabilize suggestion applicability field in json output 2018-05-21 10:48:12 -07:00
lib.rs Move definition of Edition from libsyntax to libsyntax_pos 2018-05-17 23:13:08 +03:00
ptr.rs syntax: Rename P::unwrap into P::into_inner 2017-12-17 02:21:29 +03:00
README.md Replace many of the last references to readmes 2018-03-16 12:43:22 -05:00
show_span.rs
std_inject.rs Add edition to expansion info 2018-05-17 23:13:08 +03:00
str.rs Inline char_at() and record_width. 2018-05-13 17:16:02 +10:00
test_snippet.rs Remove syntax and syntax_pos thread locals 2018-03-14 11:56:01 +01:00
test.rs Add Ident::as_str helper 2018-05-26 15:20:23 +03:00
tokenstream.rs Make Directory::path a Cow. 2018-05-18 22:20:33 +10:00
visit.rs rustc: don't visit lifetime parameters through visit_lifetime. 2018-05-30 20:29:38 +03:00

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.

For more information about how these things work in rustc, see the rustc guide: