- Add git-fmt tool
where_single_line
configuration option.
- Rename
chain_one_line_max
tochain_width
. - Change the suffix of indent-related configuration options to
_indent
.
- Rustup to the latest nightly.
- Rustup to the latest nightly.
- Fix a bug that
cargo fmt
hangs forever.
- Fix a bug that
cargo fmt
crashes.
binop_separator
configuration option (#1964).
- Use horizontal layout for function call with a single argument.
- Fix panicking when calling
cargo fmt --all
(#1963). - Refactorings & faster rustfmt.
- Fix a performance issue with nested block (#1940).
- Refactorings & faster rustfmt.
- Format and preserve attributes on statements (#1933).
- Use getters to access
Span
fields (#1899).
- Add support for
Yield
(#1928).
multiline_closure_forces_block
configuration option (#1898).multiline_match_arm_forces_block
configuration option (#1898).merge_derives
configuration option (#1910).struct_remove_empty_braces
configuration option (#1930).- Various refactorings.
- Put single-lined block comments on the same line with list-like structure's item (#1923).
- Preserve blank line between doc comment and attribute (#1925).
- Put the opening and the closing braces of enum and struct on the same line, even when
item_brace_style = "AlwaysNextLine"
(#1930).
- Format attributes on
ast::ForeignItem
and take max width into account (#1916). - Ignore empty lines when calculating the shortest indent width inside macro with braces (#1918).
- Handle tabs properly inside macro with braces (#1918).
- Fix a typo in
compute_budgets_for_args()
(#1924). - Recover comment between keyword (
impl
andtrait
) and{
which used to get removed (#1925).