rust/src/libsyntax
Mark Rousskov f9576a6fce
Rollup merge of #62668 - goodmanjonathan:fix-62660, r=estebank
Fix #62660

If the explicitly given type of a `self` parameter fails to parse correctly, we need to propagate the error rather than dropping it and causing an ICE.

Fixes #62660.
2019-07-15 19:55:10 -04:00
..
attr syntax: Migrate built-in macros to the regular stability checking 2019-07-07 13:04:07 +03:00
diagnostics Make register_[long_]diagnostics hygienic 2019-07-13 10:25:57 +01:00
ext Detect fn with a body in an extern block 2019-07-13 22:24:11 -07:00
parse Rollup merge of #62668 - goodmanjonathan:fix-62660, r=estebank 2019-07-15 19:55:10 -04:00
print pprust: Support macro macros 2019-07-15 12:42:07 +03:00
util Emit dropped unemitted errors to aid in ICE debugging 2019-07-11 16:59:19 -07:00
ast.rs pprust: Use print_mac_common for delimited token groups 2019-07-15 12:42:07 +03:00
build.rs
Cargo.toml rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
config.rs Lint on 'cfg_attr(,).' 2019-06-22 12:11:01 +02:00
early_buffered_lints.rs Remove outdated question_mark_macro_sep lint 2019-06-26 20:34:12 +02:00
entry.rs
error_codes.rs
feature_gate.rs Tweak wording in feature gate errors 2019-07-13 12:03:05 -07:00
json.rs syntax: Make def-site span mandatory in ExpnInfo/MacroBacktrace/DiagnosticSpanMacroExpansion 2019-07-11 00:12:07 +03:00
lib.rs Make newtype_index hygienic and use allow_internal_unstable 2019-07-13 10:25:57 +01:00
mut_visit.rs pprust: Fix formatting regressions from the previous commits 2019-07-15 12:42:07 +03:00
ptr.rs rustc: use a separate copy of P for HIR than for AST. 2019-07-01 14:34:34 +03:00
README.md
show_span.rs
source_map.rs Rename some things in syntax_pos/hygiene 2019-07-11 00:12:07 +03:00
std_inject.rs hygiene: Introduce a helper method for creating new expansions 2019-07-11 00:12:57 +03:00
test_snippet.rs
test.rs hygiene: Introduce a helper method for creating new expansions 2019-07-11 00:12:57 +03:00
tokenstream.rs Switch master to 1.38 2019-07-04 11:26:57 -04:00
visit.rs Auto merge of #62075 - Centril:guardless-match-arms, r=petrochenkov 2019-06-24 05:00:10 +00: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: