summary refs log tree commit diff
path: root/src/librustc_parse/parser/expr.rs
AgeCommit message (Collapse)AuthorLines
2020-01-12Rollup merge of #68108 - varkor:chained-comparison-suggestions, r=CentrilMazdak Farrokhzad-19/+23
Add suggestions when encountering chained comparisons Ideally, we'd also prevent the type error, which is just extra noise, but that will require moving the error from the parser, and I think the suggestion makes things clear enough for now. Fixes https://github.com/rust-lang/rust/issues/65659.
2020-01-11Rollup merge of #68120 - Centril:ban-range-to-dotdotdot, r=oli-obkMazdak Farrokhzad-1/+1
Ban `...X` pats, harden tests, and improve diagnostics Follow up to https://github.com/rust-lang/rust/pull/67258#issuecomment-565656155 and https://github.com/rust-lang/rust/pull/67258#discussion_r357879932. r? @cramertj @oli-obk
2020-01-11Ban `...X` pats, harden tests, and improve diagnostics.Mazdak Farrokhzad-1/+1
Also fix a bug with the span passed in `mk_range`.
2020-01-11Rollup merge of #68084 - estebank:ice-68000, r=varkorMazdak Farrokhzad-1/+1
Do not ICE on unicode next point Use `shrink_to_hi` instead of `next_point` and fix `next_point`. Fix #68000, fix #68091, fix #68092.
2020-01-11Add suggestions when encountering chained comparisonsvarkor-19/+23
2020-01-10Change `next_point` when `shrink_to_hi` is more appropriateEsteban Küber-1/+1
2020-01-10Introduce `#![feature(half_open_range_patterns)]`.Mazdak Farrokhzad-2/+2
This feature adds `X..`, `..X`, and `..=X` patterns.
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-2/+2
2019-12-31parser: bug -> span_bugMazdak Farrokhzad-1/+1
2019-12-31parser::path: remove .fatal callsMazdak Farrokhzad-3/+1
2019-12-31parser: span_fatal -> struct_span_errMazdak Farrokhzad-1/+1
2019-12-31de-fatalize some errorsMazdak Farrokhzad-1/+5
2019-12-31parser: call .struct_span_err directlyMazdak Farrokhzad-2/+1
2019-12-29Auto merge of #67112 - Centril:expr-polish, r=estebankbors-437/+453
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-23refactor assoc op parsingMazdak Farrokhzad-20/+31
2019-12-23simplify parse_prefix_range_exprMazdak Farrokhzad-18/+13
2019-12-23extract parse_not_exprMazdak Farrokhzad-52/+34
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-17/+24
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
2019-12-23extract find_struct_error_after_field_looking_codeMazdak Farrokhzad-23/+26
2019-12-23extract recover_struct_comma_after_dotdotMazdak Farrokhzad-15/+17
2019-12-23refactor parse_fieldMazdak Farrokhzad-30/+33
2019-12-23Add span information to `ExprKind::Assign`varkor-1/+3
2019-12-22Format the worldMark Rousskov-324/+306
2019-12-21extract parse_array_or_slice_tyMazdak Farrokhzad-5/+6
2019-12-20use .span_suggestion_short for &&Mazdak Farrokhzad-2/+2
2019-12-20fix bug in parse_tuple_parens_expr + related refactoringMazdak Farrokhzad-19/+13