about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-12-21extract error_opt_out_lifetimeMazdak Farrokhzad-4/+8
2019-12-21parser/ty.rs: minor formatting tweaksMazdak Farrokhzad-12/+23
2019-12-21parse_ty_common: .fatal -> .struct_span_errMazdak Farrokhzad-2/+2
2019-12-21extract error_illegal_c_variadic_tyMazdak Farrokhzad-8/+11
2019-12-21extract parse_path_start_tyMazdak Farrokhzad-21/+26
2019-12-21extract parse_dyn_tyMazdak Farrokhzad-13/+27
2019-12-21extract parse_impl_tyMazdak Farrokhzad-5/+9
2019-12-21extract parse_typeof_tyMazdak Farrokhzad-7/+11
2019-12-21extract parse_array_or_slice_tyMazdak Farrokhzad-33/+22
2019-12-21parse_ptr -> parse_ty_ptr & refactorMazdak Farrokhzad-5/+5
2019-12-21refactor parse_ty_tuple_or_parensMazdak Farrokhzad-24/+16
2019-12-21extract parse_ty_tuple_or_parensMazdak Farrokhzad-38/+44
2019-12-21Auto merge of #66994 - Centril:stmt-polish, r=estebankbors-1187/+1764
refactor expr & stmt parsing + improve recovery Summary of important changes (best read commit-by-commit, ignoring whitespace changes): - `AttrVec` is introduces as an alias for `ThinVec<Attribute>` - `parse_expr_bottom` and `parse_stmt` are thoroughly refactored. - Extract diagnostics logic for `vec![...]` in a pattern context. - Recovery is added for `do catch { ... }` - Recovery is added for `'label: non_block_expr` - Recovery is added for `var $local`, `auto $local`, and `mut $local`. Fixes #65257. - Recovery is added for `e1 and e2` and `e1 or e2`. - ~~`macro_legacy_warnings` is turned into an error (has been a warning for 3 years!)~~ - Fixes #63396 by forward-porting #64105 which now works thanks to added recovery. - `ui-fulldeps/ast_stmt_expr_attr.rs` is turned into UI and pretty tests. - Recovery is fixed for `#[attr] if expr {}` r? @estebank
2019-12-21Auto merge of #67464 - Centril:rollup-j3mkl1m, r=Centrilbors-1828/+2090
Rollup of 6 pull requests Successful merges: - #67130 (Const prop should finish propagation into user defined variables) - #67163 (Split up ptr/mod.rs in libcore...) - #67314 (Don't suppress move errors for union fields) - #67392 (Fix unresolved type span inside async object) - #67404 (Separate region inference logic from error handling better) - #67428 (`is_binding_pat`: use explicit match & include or-pats in grammar) Failed merges: r? @ghost
2019-12-20tweak var/auto/mut recoveryMazdak Farrokhzad-31/+39
2019-12-20use .span_suggestion_short for &&Mazdak Farrokhzad-10/+10
2019-12-20ast_stmt_expr_attr -> pretty & ui testsMazdak Farrokhzad-311/+692
2019-12-20fix bug in parse_tuple_parens_expr + related refactoringMazdak Farrokhzad-68/+49
2019-12-20recover `#[attr] if expr {}`Mazdak Farrokhzad-8/+54
2019-12-20recover on 'mut', 'var', 'auto'Mazdak Farrokhzad-3/+120
2019-12-20introduce 'type AttrVec'Mazdak Farrokhzad-176/+136
2019-12-20simplify parse_bottom_expr moreMazdak Farrokhzad-78/+76
2019-12-20use mk_expr_err moreMazdak Farrokhzad-1/+1
2019-12-20extract parse_lit_expr and simplifyMazdak Farrokhzad-79/+64
2019-12-20extract parse_break_exprMazdak Farrokhzad-10/+16
2019-12-20refactor parse_incorrect_await_syntaxMazdak Farrokhzad-14/+24
2019-12-20extract parse_{expr_opt, return_expr, yield_expr}Mazdak Farrokhzad-31/+34
2019-12-20recover on 'do catch { .. }'Mazdak Farrokhzad-21/+47
2019-12-20pass attr as param in new methodsMazdak Farrokhzad-10/+11
2019-12-20add recovery to parse_labeled_exprMazdak Farrokhzad-3/+27
2019-12-20extract parse_labeled_exprMazdak Farrokhzad-25/+29
2019-12-20extract parse_path_start_exprMazdak Farrokhzad-27/+30
2019-12-20extract parse_array_or_repeat_exprMazdak Farrokhzad-41/+43
2019-12-20extract parse_tuple_parens_exprMazdak Farrokhzad-34/+31
2019-12-20Clean up `parse_bottom_expr`A C-60/+39
2019-12-20Add a UI test for correct parsingA C-0/+32
2019-12-20parse_bottom_expr: use else ifMazdak Farrokhzad-14/+13
2019-12-20implement recovery in check_assoc_opMazdak Farrokhzad-92/+100
2019-12-20extract should_continue_as_assoc_exprMazdak Farrokhzad-45/+55
2019-12-20extract: error_block_no_opening_braceMazdak Farrokhzad-59/+65
2019-12-20parser: extract error_outer_attrsMazdak Farrokhzad-14/+14
2019-12-20parse_stmt_without_recovery: readability!Mazdak Farrokhzad-54/+54
2019-12-20parse_stmt_mac: add a commentMazdak Farrokhzad-0/+1
2019-12-20extract suggest_slice_patMazdak Farrokhzad-21/+25
2019-12-20parser: early return for item stmtMazdak Farrokhzad-40/+39
2019-12-20inline parse_stmt_ into parse_stmtMazdak Farrokhzad-6/+2
2019-12-20extract parse_sttmt_macMazdak Farrokhzad-63/+73
2019-12-20reduce repetition in stmt parsingMazdak Farrokhzad-56/+37
2019-12-20Rollup merge of #67428 - Centril:ibp-explicit-match, r=matthewjasperMazdak Farrokhzad-1/+9
`is_binding_pat`: use explicit match & include or-pats in grammar r? @matthewjasper @nikomatsakis
2019-12-20Rollup merge of #67404 - mark-i-m:split-1, r=matthewjasperMazdak Farrokhzad-88/+96
Separate region inference logic from error handling better Split out from #67241 r? @matthewjasper