about summary refs log tree commit diff
path: root/src/librustc_parse/parser/path.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-516/+0
2020-08-17rust_ast::ast => rustc_astUjjwal Sharma-3/+5
2020-08-15replaced log with tracingGurpreet Singh-1/+1
2020-08-02Introduce NonterminalKindAleksey Kladov-1/+1
It encapsulate the (part of) the interface between the parser and macro by example (macro_rules) parser. The second bit is somewhat more general `parse_ast_fragment`, which is the reason why we keep some `parse_xxx` functions as public.
2020-07-23Detect turbofish missing surrounding angle bracketsEsteban Küber-1/+1
2020-06-27Recover extra trailing angle brackets in struct definitionAaron Hill-1/+1
This commit applies the existing 'extra angle bracket recovery' logic when parsing fields in struct definitions. This allows us to continue parsing the struct's fields, avoiding spurious 'missing field' errors in code that tries to use the struct.
2020-05-08Remove ast::{Ident, Name} reexports.Camille GILLOT-2/+2
2020-03-27address some review commentsMazdak Farrokhzad-6/+8
2020-03-27parse: improve recovery for assoc eq constraints.Mazdak Farrokhzad-1/+43
2020-03-27extract parse_generic_argMazdak Farrokhzad-8/+14
2020-03-27parse_angle_arg: parse constraints firstMazdak Farrokhzad-4/+4
2020-03-27split parse_angle_args into loop / single stepMazdak Farrokhzad-63/+67
2020-03-27parse: move constraint/arg restriction to ast_validation.Mazdak Farrokhzad-53/+23
2020-03-09rustc_parse: Use `Token::ident` where possibleVadim Petrochenkov-3/+3
2020-03-01Rollup merge of #69579 - petrochenkov:noprevspan, r=CentrilYuki Okushi-11/+11
parser: Remove `Parser::prev_span` Follow-up to https://github.com/rust-lang/rust/pull/69384. r? @Centril
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-5/+7
2020-02-29parser: `prev_span` -> `prev_token.span`Vadim Petrochenkov-11/+11
2020-02-29Rollup merge of #69551 - matthiaskrgr:len_zero, r=Mark-SimulacrumDylan DPC-1/+1
use is_empty() instead of len() == x to determine if structs are empty.
2020-02-28use is_empty() instead of len() == x to determine if structs are empty.Matthias Krüger-1/+1
2020-02-24parser: `token` -> `normalized_token`, `nonnormalized_token` -> `token`Vadim Petrochenkov-4/+3
2020-02-17parser: Remove `Option`s from unnormalized tokensVadim Petrochenkov-1/+1
They are always set synchronously with normalized tokens now
2020-02-10parser: Keep current and previous tokens preciselyVadim Petrochenkov-1/+1
including their unnormalized forms. Add more documentation for them.
2020-02-05parse_ty_common: use `enum`s instead of `bool`s.Mazdak Farrokhzad-1/+2
2020-02-01Avoid qualified path recovery when not followed by identifierRob Pilling-1/+5
2020-02-01Improve wording and docs for qualified path recoveryRob Pilling-4/+11
2020-02-01Move colon-check to recover_colon_before_qpath_proj()Rob Pilling-15/+23
2020-02-01Simplify span usage and avoid .eat()Rob Pilling-5/+5
2020-01-30Suggest path separator for single-colon typosRob Pilling-1/+17
This commit adds guidance for when a user means to type a path, but ends up typing a single colon, such as `<<Impl as T>:Ty>`. This change seemed pertinent as the current error message is particularly misleading, emitting `error: unmatched angle bracket`, despite the angle bracket being matched later on, leaving the user to track down the typo'd colon.
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-2/+2
2019-12-31parser::path: remove .fatal callsMazdak Farrokhzad-3/+5
2019-12-31de-fatalize some errorsMazdak Farrokhzad-1/+1
2019-12-31parser: call .struct_span_err directlyMazdak Farrokhzad-18/+17
2019-12-22Format the worldMark Rousskov-68/+64
2019-12-21Fix typo in path parser nameDavid Sanders-2/+2
2019-12-20introduce 'type AttrVec'Mazdak Farrokhzad-2/+1
2019-12-12parse: refactor fun ret ty & param tyMazdak Farrokhzad-5/+1
2019-12-06derive: avoid parse_in_attrMazdak Farrokhzad-37/+0
2019-12-05rustc_parser: cleanup importsMazdak Farrokhzad-2/+2
2019-12-02syntax: Use `ast::MacArgs` for attributesVadim Petrochenkov-3/+4
2019-11-10move syntax::parse -> librustc_parseMazdak Farrokhzad-0/+497
also move MACRO_ARGUMENTS -> librustc_parse