about summary refs log tree commit diff
path: root/compiler/rustc_ast_pretty/src/pprust/state
AgeCommit message (Expand)AuthorLines
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-04-01Move `ast::Item::ident` into `ast::ItemKind`.Nicholas Nethercote-41/+42
2025-03-25Allow defining opaques in statics and constsMichael Goulet-20/+45
2025-03-25Make printing define_opaque less goofyMichael Goulet-7/+19
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-11Implement `#[define_opaque]` attribute for functions.Oli Scherer-2/+11
2025-03-06Use closure parse codeSantiago Pastorino-0/+1
2025-03-06Implement .use keyword as an alias of cloneSantiago Pastorino-0/+8
2025-03-01Implment `#[cfg]` and `#[cfg_attr]` in `where` clausesFrank King-1/+2
2025-02-27Introduce `AssocOp::Binary`.Nicholas Nethercote-4/+3
2025-02-03Express contracts as part of function header and lower it to the contract lan...Celina G. Val-1/+20
2025-01-28Refactor FnKind variant to hold &FnCelina G. Val-19/+9
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/+31
2024-12-23Use `#[derive(Default)]` instead of manually implementing itEsteban Küber-15/+3
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-1/+1
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-26Rollup merge of #133140 - dtolnay:precedence, r=fmeaseMichael Goulet-3/+3
2024-11-25Refactor `where` predicates, and reserve for attributes supportFrank King-4/+7
2024-11-17Inline ExprPrecedence::order into Expr::precedenceDavid Tolnay-3/+3
2024-10-24Print safety correctly in extern static itemsMichael Goulet-1/+6
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-6/+6
2024-08-16Add `warn(unreachable_pub)` to `rustc_ast_pretty`.Nicholas Nethercote-7/+7
2024-08-07Use more slice patterns inside the compilerLeón Orell Valerian Liehr-2/+2
2024-07-29Reformat `use` declarations.Nicholas Nethercote-12/+12
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-20StaticForeignItem and StaticItem are the sameMichael Goulet-6/+1
2024-06-14delegation: Implement glob delegationVadim Petrochenkov-19/+32
2024-06-07Revert "Create const block DefIds in typeck instead of ast lowering"Oli Scherer-3/+2
2024-06-04Add safe/unsafe to static inside extern blocksSantiago Pastorino-1/+2
2024-06-04Handle safety keyword for extern block inner itemsSantiago Pastorino-1/+7
2024-05-28Create const block DefIds in typeck instead of ast loweringOli Scherer-2/+3
2024-05-17Rename Unsafe to SafetySantiago Pastorino-7/+7
2024-05-15delegation: Implement list delegationVadim Petrochenkov-14/+60
2024-05-11Fix redundant parens around braced macro call in match armsDavid Tolnay-6/+53
2024-05-11Fix pretty printer statement boundaries after braced macro callDavid Tolnay-5/+1
2024-05-11Macro call with braces does not require semicolon to be statementDavid Tolnay-1/+5
2024-05-11Mark expr_requires_semi_to_be_stmt call sitesDavid Tolnay-1/+1
2024-05-08Rollup merge of #123344 - pietroalbini:pa-unused-imports, r=NilstriebMatthias Krüger-2/+2