style-guide: Only use the new binop heuristic for assignments · rust-lang/rust@d7e6074 (original) (raw)

Original file line number Diff line number Diff line change
@@ -40,8 +40,9 @@ include:
40 40 of a delimited expression, delimited expressions are generally combinable,
41 41 regardless of the number of members. Previously only applied with exactly
42 42 one member (except for closures with explicit blocks).
43 -- When line-breaking a binary operator, if the first operand spans multiple
44 - lines, use the base indentation of the last line.
43 +- When line-breaking an assignment operator, if the left-hand side spans
44 + multiple lines, use the base indentation of the last line of the left-hand
45 + side to indent the right-hand side.
45 46 - Miscellaneous `rustfmt` bugfixes.
46 47 - Use version-sort (sort `x8`, `x16`, `x32`, `x64`, `x128` in that order).
47 48 - Change "ASCIIbetical" sort to Unicode-aware "non-lowercase before lowercase".