about summary refs log tree commit diff
path: root/src/doc/style-guide
AgeCommit message (Expand)AuthorLines
2025-05-07style: Never break within a nullary function call `func()` or a unit literal ...Josh Triplett-0/+13
2025-04-08Stabilize precise capture syntax in style guidexizheyin-12/+12
2025-04-06doc(style): add let-chain rulesCaleb Cartwright-6/+72
2025-01-30Revert "[style 2024] Combine all last arg delimited exprs"Michael Goulet-52/+7
2024-12-31Rollup merge of #134975 - ehuss:revert-style-guide-rhs-break, r=compiler-errorsTrevor Gross-28/+0
2024-12-31Revert "Rollup merge of #119838 - joshtriplett:style-guide-binop-indent, r=co...Eric Huss-33/+0
2024-12-31Revert "Rollup merge of #132369 - joshtriplett:style-guide-binop-heuristic-as...Eric Huss-6/+11
2024-12-31Revert "Rollup merge of #119515 - joshtriplett:style-guide-gat-where-clause-s...Eric Huss-27/+4
2024-10-30style-guide: Only use the new binop heuristic for assignmentsJosh Triplett-11/+6
2024-08-26Add unsafe to extern blocks in style guideSantiago Pastorino-2/+2
2024-07-17style-guide: Clarify version-sortingJosh Triplett-21/+23
2024-06-20Add nightly style guide section for precise_capturingMichael Goulet-0/+12
2024-05-14Wording improvementJosh Triplett-1/+1
2024-05-14Fix missing wordJosh Triplett-1/+1
2024-05-14style-guide: When breaking binops handle multi-line first operand betterJosh Triplett-0/+33
2024-05-13Reword formatting for where clausesJosh Triplett-1/+1
2024-05-13style-guide: Also format where clauses on one line for short function declsJosh Triplett-5/+15
2024-05-13style-guide: Not all where clauses can be written as inline boundsJosh Triplett-1/+1
2024-05-13style-guide: Give a second example for associated type formattingJosh Triplett-0/+1
2024-05-13style-guide: Format single associated type `where` clauses on the same lineJosh Triplett-1/+13
2024-01-24Rollup merge of #114764 - pitaj:style-delimited-expressions, r=joshtriplettLeón Orell Valerian Liehr-7/+52
2024-01-11Rollup merge of #115046 - joshtriplett:master, r=compiler-errorsMatthias Krüger-11/+104
2023-12-22style-guide: Rework version-sorting algorithmJosh Triplett-22/+69
2023-11-29[style 2024] Combine all last arg delimited exprsPeter Jaszkowiak-7/+52
2023-09-27Auto merge of #114901 - compiler-errors:style-guide-wc, r=calebcartwrightbors-6/+32
2023-09-21Rollup merge of #114394 - joshtriplett:style-guide-as, r=calebcartwrightMatthias Krüger-8/+20
2023-09-19Rollup merge of #113383 - joshtriplett:style-bugs, r=compiler-errorsGuillaume Gomez-0/+13
2023-08-27Clarify "as normal" -> "lexicographically"Josh Triplett-4/+5
2023-08-23Remove opinions from style guide about where clauses in type alias itemsMichael Goulet-6/+9
2023-08-21Streamline description of versionsort (incorporate suggestion from Ralf)Josh Triplett-4/+3
2023-08-21Clarify that version-sorting looks for the *longest* sequence of digitsJosh Triplett-3/+4
2023-08-21Make an implementation note on version-sorting accurateJosh Triplett-3/+3
2023-08-21Use version-sorting for all sortingJosh Triplett-11/+56
2023-08-17style-guide: Add guidance for defining formatting for specific macrosJosh Triplett-1/+6
2023-08-16Describe how to format trailing where clausesMichael Goulet-2/+25
2023-08-16bugfix: reflect how rustfmt formats type aliasesMichael Goulet-3/+3
2023-08-04style-guide: Expand documentation on `as` casts (mostly like a binary operator)Josh Triplett-8/+20
2023-08-01Rollup merge of #114262 - ShapelessCat:fix-style-guide-md, r=joshtriplettMatthias Krüger-152/+118
2023-08-01Rollup merge of #113394 - joshtriplett:style-edition-snapshot, r=calebcartwrightMatthias Krüger-0/+47
2023-07-31Link to the Rust edition guide for more information about editionsJosh Triplett-4/+6
2023-07-31style-guide: Document style editions, start 2024 style editionJosh Triplett-0/+45
2023-07-31Use - instead of * for unordered listLan, Jian-53/+55
2023-07-31Improve the rust style guide docLan, Jian-134/+98
2023-07-27docs(style-guide): don't flatten match arms with macro callCaleb Cartwright-1/+6
2023-07-21Simplify wording in guide for unbraced closuresJosh Triplett-2/+2
2023-07-21Clarify guide for unbraced closures, regarding commentsJosh Triplett-2/+2
2023-07-21Clarify guide for unbraced closures: grammatical consistencyJosh Triplett-3/+3
2023-07-21Clarify conditions for single-line blocksJosh Triplett-2/+2
2023-07-21Use roman 4 letter instead of wordIvan Tham-2/+2
2023-07-21Add missing code fencecherryblossom000-0/+2