about summary refs log tree commit diff
path: root/src/librustc_parse
AgeCommit message (Collapse)AuthorLines
2019-12-31Rollup merge of #67744 - Centril:reduce-diversity, r=petrochenkovMazdak Farrokhzad-134/+125
parser: reduce diversity in error handling mechanisms Instead of having e.g. `span_err`, `fatal`, etc., we prefer to move towards uniformly using `struct_span_err` thus making it harder to emit fatal and/or unstructured diagnostics. This PR also de-fatalizes some diagnostics. r? @estebank
2019-12-31parser: bug -> span_bugMazdak Farrokhzad-7/+6
2019-12-31parser::diagnostics: remove fn fatalMazdak Farrokhzad-6/+3
2019-12-31parser::pat: remove .fatal callsMazdak Farrokhzad-11/+15
2019-12-31parser::path: remove .fatal callsMazdak Farrokhzad-10/+15
2019-12-31parser::module: remove .fatal callsMazdak Farrokhzad-1/+2
2019-12-31parser::item: remove .fatal callsMazdak Farrokhzad-8/+7
2019-12-31parser::attr: remove .fatal callsMazdak Farrokhzad-2/+4
2019-12-31process_potential_macro_variable: de-fatalize an errorMazdak Farrokhzad-2/+1
2019-12-31parser: span_fatal -> struct_span_errMazdak Farrokhzad-12/+8
2019-12-31de-fatalize some errorsMazdak Farrokhzad-8/+9
2019-12-31parser: call .struct_span_err directlyMazdak Farrokhzad-68/+56
2019-12-31Inline and remove `nfc_symbol_from` method.Charles Lew-8/+1
2019-12-31Add symbol normalization for proc_macro_server.Charles Lew-8/+12
2019-12-30Rename `libsyntax_ext` and `libsyntax_expand` in codeVadim Petrochenkov-1/+1
2019-12-30Make things build againVadim Petrochenkov-1/+1
2019-12-29Auto merge of #67112 - Centril:expr-polish, r=estebankbors-481/+497
Refactor expression parsing thoroughly Based on https://github.com/rust-lang/rust/pull/66994 together with which this has refactored basically the entirety of `expr.rs`. r? @estebank
2019-12-28doc comments: Less attribute mimickingVadim Petrochenkov-23/+20
2019-12-26Normalize identifiers in librustc_parse.Charles Lew-2/+16
2019-12-23Auto merge of #66296 - Centril:bindings_after_at-init, r=pnkfelixbors-0/+1
Initial implementation of `#![feature(bindings_after_at)]` Following up on #16053, under the gate `#![feature(bindings_after_at)]`, `x @ Some(y)` is allowed subject to restrictions necessary for soundness. The implementation and test suite should be fairly complete now. One aspect that is not covered is the interaction with nested `#![feature(or_patterns)]`. This is not possible to test at the moment in a good way because that feature has not progressed sufficiently and has fatal errors in MIR building. We should make sure to add such tests before we stabilize both features (but shipping one of them is fine). r? @pnkfelix cc @nikomatsakis @matthewjasper @pcwalton cc https://github.com/rust-lang/rust/issues/65490
2019-12-23Introduce `#![feature(bindings_after_at)]`.Mazdak Farrokhzad-0/+1
Under the gate, `x @ Some(y)` is allowed. This is subject to various restrictions for soundness.
2019-12-23fix rebase falloutMazdak Farrokhzad-1/+1
2019-12-23refactor assoc op parsingMazdak Farrokhzad-20/+31
2019-12-23simplify parse_prefix_range_exprMazdak Farrokhzad-18/+13
2019-12-23extract parse_not_exprMazdak Farrokhzad-95/+73
2019-12-23extract parse_prefix_exprMazdak Farrokhzad-16/+17
2019-12-23extract parse_neg_exprMazdak Farrokhzad-6/+9
2019-12-23extract parse_deref_exprMazdak Farrokhzad-10/+13
2019-12-23extract is_mistaken_not_ident_negationMazdak Farrokhzad-23/+24
2019-12-23extract recover_not_exprMazdak Farrokhzad-26/+27
2019-12-23simplify parse_assoc_op_castMazdak Farrokhzad-8/+1
2019-12-23refactor parse_address_of -> parse_borrow_exprMazdak Farrokhzad-7/+14
2019-12-23simplify parse_dot_call_or_exprMazdak Farrokhzad-9/+5
2019-12-23extract parse_dot_base_exprMazdak Farrokhzad-13/+10
2019-12-23extract parse_dot_suffix_exprMazdak Farrokhzad-18/+27
2019-12-23extract error_unexpected_after_dot and de-fatalizeMazdak Farrokhzad-5/+7
2019-12-23extract recover_field_access_by_float_litMazdak Farrokhzad-26/+37
2019-12-23extract parse_tuple_field_access_exprMazdak Farrokhzad-7/+16
2019-12-23extract parse_fn_call_exprMazdak Farrokhzad-9/+9
2019-12-23extract parse_index_expr & refactor parse_dot_suffixMazdak Farrokhzad-28/+22
2019-12-23extract error_float_lits-must_have_int_partMazdak Farrokhzad-8/+12
2019-12-23simplify parse_literal_maybe_minusMazdak Farrokhzad-8/+4
2019-12-23simplify parse_fn_block_declMazdak Farrokhzad-17/+15
2019-12-23refactor parse_fn_block_paramMazdak Farrokhzad-5/+4
2019-12-23refactor parse_if_exprMazdak Farrokhzad-8/+2
2019-12-23more recovery in if-parsingMazdak Farrokhzad-19/+30
2019-12-23refactor loop parsing a bitMazdak Farrokhzad-29/+26
2019-12-23make parse_async_block conventionalMazdak Farrokhzad-9/+6
2019-12-23extract is_certainly_not_a_blockMazdak Farrokhzad-16/+16
2019-12-23extract error_struct_lit_not_allowed_hereMazdak Farrokhzad-10/+11