about summary refs log tree commit diff
path: root/compiler/rustc_ast_pretty/src/pprust/state/expr.rs
AgeCommit message (Expand)AuthorLines
2025-06-30Introduce `ByteSymbol`.Nicholas Nethercote-2/+6
2025-06-24Rollup merge of #135731 - frank-king:feature/pin-borrow, r=eholk,traviscrossJubilee-0/+4
2025-06-20Insert parentheses around binary operation with attributeDavid Tolnay-12/+38
2025-06-15Implement pinned borrows, part of `pin_ergonomics`Frank King-0/+4
2025-05-03Implement asymmetrical precedence for closures and jumpsDavid Tolnay-53/+54
2025-05-03Avoid an indent for labelled loops.Nicholas Nethercote-2/+2
2025-05-03Remove fake `BoxMarker`s.Nicholas Nethercote-10/+1
2025-04-28Introduce `BoxMarker` to pretty-printing.Nicholas Nethercote-63/+65
2025-04-27Rollup merge of #140280 - nnethercote:improve-if-else-printing, r=UrgauMatthias Krüger-4/+6
2025-04-26Improve HIR pretty-printing of if/else some more.Nicholas Nethercote-1/+1
2025-04-25Improve pretty printing of if/else.Nicholas Nethercote-3/+5
2025-04-25Fix some pretty printing indents.Nicholas Nethercote-2/+2
2025-04-24Fix pretty printing of never pattern match arms.Nicholas Nethercote-0/+1
2025-04-03Tighten up assignment operator representations.Nicholas Nethercote-2/+1
2025-04-03Use `BinOpKind` instead of `BinOp` for function args where possible.Nicholas Nethercote-6/+6
2025-03-18Refactor YieldKind so postfix yield must have an expressionEric Holk-4/+2
2025-03-18Apply suggestions from code reviewEric Holk-1/+1
2025-03-14Preserve yield position during pretty printingEric Holk-2/+12
2025-03-06Use closure parse codeSantiago Pastorino-0/+1
2025-03-06Implement .use keyword as an alias of cloneSantiago Pastorino-0/+8
2025-02-27Introduce `AssocOp::Binary`.Nicholas Nethercote-4/+3
2024-12-27Rollup merge of #134834 - dtolnay:unnamedcall, r=compiler-errorsDavid Tolnay-1/+3
2024-12-27Skip parenthesis around tuple struct field callsDavid Tolnay-1/+3
2024-12-27Skip parenthesis if `.` makes statement boundary unambiguousDavid Tolnay-11/+17
2024-12-12Add unwrap_unsafe_binder and wrap_unsafe_binder macro operatorsMichael Goulet-0/+19
2024-11-30Eliminate magic numbers from expression precedenceDavid Tolnay-25/+24
2024-11-30Eliminate PREC_FORCE_PARENDavid Tolnay-4/+4
2024-11-30Eliminate precedence arithmetic from rustc_ast_prettyDavid Tolnay-25/+16
2024-11-29Eliminate rustc_ast_pretty's print_expr_maybe_parenDavid Tolnay-31/+87
2024-11-17Inline ExprPrecedence::order into Expr::precedenceDavid Tolnay-2/+2
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-3/+3
2024-07-29Reformat `use` declarations.Nicholas Nethercote-8/+8
2024-07-02Rollup merge of #126883 - dtolnay:breakvalue, r=fmeaseMatthias Krüger-2/+6
2024-07-01Parenthesize break values containing leading labelDavid Tolnay-2/+6
2024-06-27Tighten spans for async blocksMichael Goulet-1/+1
2024-06-23Rename the 2 unambiguous precedence levels to PREC_UNAMBIGUOUSDavid Tolnay-7/+7
2024-06-07Revert "Create const block DefIds in typeck instead of ast lowering"Oli Scherer-3/+2
2024-05-28Create const block DefIds in typeck instead of ast loweringOli Scherer-2/+3
2024-05-11Fix redundant parens around braced macro call in match armsDavid Tolnay-1/+1
2024-05-03AST pretty: Use `builtin_syntax` for type ascriptionLeón Orell Valerian Liehr-7/+8
2024-04-29Pretty-print parenthesis around binary in postfix matchSasha Pourcelot-1/+1
2024-04-19Give a name to each distinct manipulation of pretty-printer FixupContextDavid Tolnay-132/+21
2024-04-19Move pretty-printer FixupContext to a moduleDavid Tolnay-72/+1
2024-03-27chore: fix some commentsxiaoxiangxianzi-1/+1
2024-03-06Add MatchKind member to the Match expr for pretty printing & fmtRoss Smyth-5/+15
2024-02-25Add `ErrorGuaranteed` to `ast::ExprKind::Err`Lieselotte-1/+1
2024-02-25Add `ast::ExprKind::Dummy`Lieselotte-0/+5
2023-12-27Auto merge of #119105 - dtolnay:paren, r=WaffleLapkinbors-41/+283
2023-12-19Plumb awaitness of for loopsEric Holk-3/+7
2023-12-18Fix parenthesization of subexprs containing statement boundaryDavid Tolnay-41/+283