rust/src/libsyntax
Mazdak Farrokhzad af4acd0533
Rollup merge of #59866 - estebank:recover-missing-semi, r=petrochenkov
Recover from missing semicolon based on the found token

When encountering one of a few keywords when a semicolon was
expected, suggest the semicolon and recover:

```
error: expected one of `.`, `;`, `?`, or an operator, found `let`
  --> $DIR/recover-missing-semi.rs:4:5
   |
LL |     let _: usize = ()
   |                      - help: missing semicolon here
LL |
LL |     let _ = 3;
   |     ^^^

error[E0308]: mismatched types
  --> $DIR/recover-missing-semi.rs:2:20
   |
LL |     let _: usize = ()
   |                    ^^ expected usize, found ()
   |
   = note: expected type `usize`
              found type `()`
```
2019-04-12 20:36:16 +02:00
..
attr Make meta-item API compatible with LocalInternedString::get soundness fix 2019-03-17 17:04:58 +03:00
diagnostics Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasper 2019-02-13 04:37:04 +01:00
ext Rollup merge of #57565 - petrochenkov:turbowarn, r=Centril 2019-03-27 18:15:19 -07:00
parse Rollup merge of #59866 - estebank:recover-missing-semi, r=petrochenkov 2019-04-12 20:36:16 +02:00
print Auto merge of #59227 - Zoxc:fix-get, r=eddyb 2019-04-11 23:36:13 +00:00
util rustc: doc comments 2019-02-10 23:42:32 +00:00
ast.rs Remove methods is_struct/is_tuple/is_unit from VariantData 2019-03-24 12:10:16 +03:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml update scoped_tls to 1.0 2019-02-26 09:54:45 +01:00
config.rs Separate variant id and variant constructor id. 2019-03-24 12:10:16 +03:00
diagnostic_list.rs Add -Z allow_features=... flag 2019-03-14 15:42:20 -07:00
early_buffered_lints.rs Make it an incompatibility lint for now 2019-02-07 12:17:27 -06:00
entry.rs libsyntax => 2018 2019-02-07 02:33:01 +09:00
feature_gate.rs Reword tracking issue note 2019-04-11 11:42:06 -07:00
json.rs Tweak unstable diagnostic output 2019-04-10 18:10:30 -07:00
lib.rs Deny internal lints on non conflicting crates 2019-04-03 18:24:21 +02:00
mut_visit.rs Separate variant id and variant constructor id. 2019-03-24 12:10:16 +03:00
ptr.rs Fix fallout from #57667 2019-03-09 18:23:17 +09:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
show_span.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
source_map.rs Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasper 2019-02-13 04:37:04 +01:00
std_inject.rs Use Rc<[Symbol]> instead of Vec<Symbol> to reduce # of allocs 2019-02-11 15:08:17 +01:00
test.rs Refactor away NestedMetaItemKind 2019-03-16 23:14:42 +03:00
test_snippet.rs Account for fully overlapping multiline annotations 2019-03-27 19:35:30 -07:00
tokenstream.rs Use SmallVec in TokenStreamBuilder. 2019-03-29 09:32:58 +11:00
visit.rs Rollup merge of #59510 - varkor:rename-type_parameters, r=eddyb 2019-03-29 12:32:32 +01: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: