about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
AgeCommit message (Expand)AuthorLines
2024-12-08Rollup merge of #133424 - Nadrieril:guard-patterns-parsing, r=fee1-deadMatthias Krüger-32/+26
2024-11-30Eliminate magic numbers from expression precedenceDavid Tolnay-4/+4
2024-11-30Eliminate precedence arithmetic from rustc_parseDavid Tolnay-13/+18
2024-11-28Improve span handling in `parse_expr_bottom`.Nicholas Nethercote-11/+8
2024-11-24parse guard patternsNadrieril-29/+23
2024-11-24refactor pat parser method names/doc-comments to agree with RFC 3637Max Niederman-5/+5
2024-11-21Remove `ErrorGuaranteed` retval from `error_unexpected_after_dot`.Nicholas Nethercote-7/+7
2024-11-21Prepare for invisible delimiters.Nicholas Nethercote-2/+10
2024-11-16Better account for `else if` macro conditions mising an `if`Esteban Küber-1/+10
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-26/+26
2024-09-18Recover more expressions in patternsLieselotte-2/+2
2024-09-14Refactor `Parser::break_up_float`Lieselotte-27/+25
2024-09-14Fix `Parser::break_up_float`'s right spanLieselotte-1/+1
2024-09-14Add `ErrorGuaranteed` to `DestructuredFloat::Error`Lieselotte-7/+7
2024-09-11Also fix if in elseMichael Goulet-7/+5
2024-09-06Add initial support for raw lifetimesMichael Goulet-3/+3
2024-08-21Use bool in favor of Option<()> for diagnosticsMichael Goulet-2/+2
2024-08-18stabilize raw_ref_opRalf Jung-3/+2
2024-08-16Overhaul token collection.Nicholas Nethercote-32/+57
2024-08-16Convert a bool to `Trailing`.Nicholas Nethercote-9/+11
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-35/+34
2024-08-14Convert a `&mut self` to `&self`.Nicholas Nethercote-1/+1
2024-08-07Use more slice patterns inside the compilerLeón Orell Valerian Liehr-3/+3
2024-08-03Rollup merge of #128483 - nnethercote:still-more-cfg-cleanups, r=petrochenkovMatthias Krüger-46/+29
2024-08-01Fix removed `box_syntax` diagnostic if source isn't availableclubby789-4/+6
2024-08-01Streamline attribute stitching on AST nodes.Nicholas Nethercote-11/+7
2024-07-31Remove `LhsExpr`.Nicholas Nethercote-35/+22
2024-07-29Mark Parser::eat/check methods as must_useMichael Goulet-2/+3
2024-07-29Reformat `use` declarations.Nicholas Nethercote-15/+16
2024-07-22Always pass the visitor as the first argument to walk* functionsOli Scherer-5/+5
2024-07-22Sync `mut_visit` function names with immut `visit` ones (s/noop_visit/walk/)Oli Scherer-6/+6
2024-07-18Remove `TrailingToken`.Nicholas Nethercote-16/+10
2024-07-17Rollup merge of #127806 - nnethercote:parser-improvements, r=spastorinoTrevor Gross-69/+56
2024-07-16Deny keyword lifetimes pre-expansionMichael Goulet-3/+10
2024-07-16Fix a comment.Nicholas Nethercote-1/+1
2024-07-16Inline and remove `Parser::parse_expr_dot_or_call_with_`.Nicholas Nethercote-53/+49
2024-07-16Inline and remove `Parser::parse_and_disallow_postfix_after_cast`.Nicholas Nethercote-13/+4
2024-07-16Reorder `Parser::parse_expr_dot_or_call_with` arguments.Nicholas Nethercote-2/+2
2024-07-12Make parse error suggestions verbose and fix spansEsteban Küber-5/+6
2024-06-29Rollup merge of #127103 - compiler-errors:tighten-trait-bound-parsing, r=fmeaseMatthias Krüger-1/+1
2024-06-28Move binder and polarity parsing into parse_generic_ty_boundMichael Goulet-1/+1
2024-06-27Tighten spans for async blocksMichael Goulet-2/+3
2024-06-25Inline and remove `maybe_whole_expr!`.Nicholas Nethercote-32/+41
2024-06-20Add blank lines after module-level `//` comments.Nicholas Nethercote-0/+1
2024-06-19Auto merge of #126678 - nnethercote:fix-duplicated-attrs-on-nt-expr, r=petroc...bors-81/+74
2024-06-19Change how `parse_expr_force_collect` works.Nicholas Nethercote-2/+5
2024-06-19Refactor `parse_expr_res`.Nicholas Nethercote-11/+19
2024-06-19Simplify `LhsExpr::Unparsed`.Nicholas Nethercote-10/+11
2024-06-19Move `parse_or_use_outer_attributes` out of `parse_expr_prefix_range`.Nicholas Nethercote-9/+10
2024-06-19Move `parse_or_use_outer_attributes` out of `parse_expr_prefix`.Nicholas Nethercote-5/+8