use_small_heuristics
changed to be an enum and stabilised. Configuration options are now ready for 1.0.
- Add
ignore
configuration option. - Add
license_template_path
configuration option. - Format
lazy_static!
.
- Fix formatting bugs.
- Fix setting
reorder_modules
removing inline modules. - Format attributes on block expressions.
- Support
dyn trait
syntax. - Support multiple patterns in
if let
andwhile let
. - Support a pattern with parentheses.
- Do not print verbose outputs when formatting with stdin.
- Preserve trailing whitespaces in doc comments.
- Scale the values of width heuristics by
max_width
.
- Do not reorder items with
#[macro_use]
. - Fix formatting bugs.
- Support the beginning
|
on a match arm.
- Format (or at least try to format)
macro_rules!
.
- Add
use_field_init_shorthand
config option. - Add
reorder_modules
configuration option.
- Fix panicking on formatting certain macros (#2371).
- Format code block in comments when
wrap_comments
is set totrue
. - Remove
same_line_attributes
configuration option. - Rename
git-fmt
togit-rustfmt
.
- Rustup to
rustc 1.25.0-nightly (e6072a7b3 2018-01-13)
. - Fix formatting bugs.
- Add
--version
flag tocargo-fmt
, allowcargo fmt --version
.
- Rustup to
rustc 1.24.0-nightly (5165ee9e2 2017-12-22)
.
- Format trait aliases.
cargo fmt
will format every workspace member.
- Rustup to
rustc 1.24.0-nightly (250b49205 2017-12-21)
- Fix formatting bugs.
- Warn when unkown configuration option is used.
- Rustup to
rustc 1.24.0-nightly (0077d128d 2017-12-14)
.
- Add
error_on_unformatted
configuration option. - Add
--error-on-unformatted
command line option.
- Do not report formatting errors on comments or strings by default.
- Rename
error_on_line_overflow_comments
toerror_on_unformatted
.
- Fix formatting bugs.
- Fix adding a trailing whitespace inside code block when
wrap_comments = true
.
- Support nested imports.
- Do not report errors on skipped items.
- Do not format code block inside comments when
wrap_comments = true
. - Keep vertical spaces between items within range.
- Format
format!
and its variants using compressed style. - Format
write!
and its variants using compressed style. - Format simple array using compressed style.
- Fix
rustfmt --package package_name
not working properly. - Fix formatting bugs.
- Add
blank_lines_lower_bound
andblank_lines_upper_bound
configuration options.
- Combine configuration options related to width heuristic into
width_heuristic
. - If the match arm's body is
if
expression, force to use block.
- Fix
cargo fmt --all
being trapped in an infinite loop. - Fix many formatting bugs.
- Remove legacy configuration options.
- Remove empty lines at the beginning of the file.
- Soft wrapping on doc comments.
- Break before
|
when using multiple lines for match arm patterns. - Combine
control_style
,where_style
and*_indent
config options intoindent_style
. - Combine
item_brace_style
andfn_brace_style
config options intobrace_style
. - Combine config options related spacing around colons into
space_before_colon
andspace_after_colon
.
- Fix many bugs.
- 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).