All Versions
96
Latest Version
Avg Release Cycle
34 days
Latest Release
1432 days ago
Changelog History
Page 6
Changelog History
Page 6
-
v1.0.2 Changes
February 12, 2019โ Added
- โ Add a section to the Contributing.md file about version-gating formatting changes 36e2cb0
- ๐ Allow specifying package with
-p
CLI option a8d2591 - ๐ Support
rustfmt::skip
on imports #3289 - ๐ Support global
rustfmt.toml
to be written in user config directory #3280 - Format visibility on trait alias 96a3df3
๐ Changed
- Do not modify original source code inside macro call #3260
- Recognize strings inside comments in order to avoid indenting them baa62c6
- ๐ Use Unicode-standard char width to wrap comments or strings a01990c
- ๐ Change new line point in the case of no args #3294
- ๐ Use the same formatting rule between functions and macros #3298
- Update rustc-ap-rustc_target to 366.0.0, rustc-ap-syntax to 366.0.0, and rustc-ap-syntax_pos to 366.0.0
๐ Fixed
- rewrite_comment: fix block fallback when failing to rewrite an itemized block ab7f4e1
- Catch possible tokenizer panics #3240
- ๐ Fix macro indentation on Windows #3266
- ๐ Fix shape when formatting return or break expr on statement position #3259
- rewrite_comment: fix block fallback when failing to rewrite an itemized block
- Keep leading double-colon to respect the 2018 edition of rust's paths a2bfc02
- ๐ Fix glob and nested global imports 2125ad2
- Do not force trailing comma when using mixed layout #3306
- Prioritize
single_line_fn
andempty_item_single_line
overbrace_style
#3308 - ๐ Fix
internal error: left behind trailing whitespace
with long lines c2534f5 - ๐ Fix attribute duplication #3325
- ๐ Fix formatting of strings within a macro 813aa79
- ๐ Handle a macro argument with a single keyword 9a7ea6a
-
v1.0.1 Changes
December 09, 2018โ Added
- โ Add a
version
option 378994b
๐ Changed
- End expressions like return/continue/break with a semicolon #3223
- Update rustc-ap-rustc_target to 306.0.0, rustc-ap-syntax to 306.0.0, and rustc-ap-syntax_pos to 306.0.0
๐ Fixed
- ๐ Allow to run a rustfmt command from cargo-fmt even when there is no target a2da636
- ๐ Fix
un-closed delimiter
errors when formatting break labels 40174e9
- โ Add a
-
v1.0.0 Changes
November 19, 2018๐ Changed
- Preserve possibly one whitespace for brace macros 1a3bc79
- Prefer to break arguments over putting output type on the next line 1dd54e6
-
v0.99.9 Changes
November 15, 2018๐ Changed
- Update rustc-ap-rustc_target to 297.0.0, rustc-ap-syntax to 297.0.0, to rustc-ap-syntax_pos to 297.0.0
- Don't align comments on
extern crate
s dd7add7
-
v0.99.8 Changes
November 14, 2018โ Added
- Add
overflow_delimited_expr
config option to more aggressively allow overflow #3175
๐ Fixed
- ๐ Fix the logic for retaining a comment before the arrow in a match #3181
- โ Do not wrap comments in doctest to avoid failing doctest runs #3183
- ๐ Fix comment rewriting that was wrapping code into a line comment #3188
- ๐ Fix formatting of unit-struct with
where
-clause #3200
- Add
-
v0.99.7 Changes
November 07, 2018๐ Changed
- ๐ฎ Force a newline after the
if
condition if there is a different indentation level #3109 - ๐ Use correct width when formatting type on local statement #3126
- Treat crates non-alphabetically when ordering 799005f
- ๐ Fix formatting of code that is annotated with rustfmt::skip #3113
- ๐ง Stabilize
edition
configuration option 9c3ae2d - cargo-fmt: detect Rust edition in use #3129
- ๐ Trim the indentation on macros which heuristically appear to use block-style indentation #3178
๐ Fixed
- ๐ Do not remove path disambiugator inside macro #3142
- ๐ Improve handling of Windows newlines #3141
- Fix alignment of a struct's fields (
struct_field_align_threshold
option) with the Visualindent_style
#3165 - ๐ Fix a bug in formatting markdown lists within comments #3172
- ๐ฎ Force a newline after the
-
v0.99.6 Changes
October 18, 2018โ Added
- Add
enum_discrim_align_threshold
option to vertically align enum discriminants cc22869 - โ Add
println!
-like heuristic to thefail
attribute #3067 - ๐ Handle itemized items inside comments #3083
- Add
format_doc_comments
configuration option to control the formatting of code snippets inside comments #3089
๐ Changed
- ๐ Makes brace behavior consistent with empty bodies for traits and impls 2727d41
- Consider a multi-lined array as a block-like expression #3969
- ๐ Improve formatting of strings #3073
- Get rid of extra commas in Visual struct literal formatting #3077
- Update rustc-ap-rustc_target to 274.0.0, rustc-ap-syntax to 274.0.0, and rustc-ap-syntax_pos to 274.0.0
- Format macro calls with item-like arguments #3080
- Avoid control flow expressions conditions to go multi line ef59b34
- Simplify multi-lining binop expressions #3101
๐ Fixed
- ๐ Do not format a code block in documentation if it is annotated with ignore or text 2bcc3a9
- ๐ Fix inconsistent overflow behavior in Visual style #3078
- ๐ Fix corner cases of the string formatting implementation #3083
- Do not add parens around lifetimes 0ac68c9
- ๐ Catch parser panic in format_snippet 8c4e92a
- Add
-
v0.99.5 Changes
September 25, 2018โ Added
- ๐ Handle leading module separator for 2018 Edition #2952
- Add configuration option
normalize_doc_attributes
: convert doc attributes to comments #3002
๐ Changed
- Accept 2015 and 2018 instead of Edition2015 and Edition2018 for edition option eec7436
- ๐ Support platforms without a timer 46e2a2e
- Update rustc-ap-rustc_target to 263.0.0, rustc-ap-syntax to 263.0.0, and rustc-ap-syntax_pos to 263.0.0
๐ Fixed
- Format of attributes with commas #2971
- ๐ Fix optional arg condensing #2972
- ๐ Improve formatting of long function parameters #2981
- ๐ Fix formatting of raw string literals #2983
- ๐ Handle chain with try operators with spaces #2986
- ๐ Use correct shape in Visual tuple rewriting #2987
- ๐ Improve formatting of arguments with
visual_style = "Visual"
option #2988 - ๐ Change
print_diff
to output the correct line number 992b179 - Propagate errors about failing to rewrite a macro 6f318e3
- ๐ Handle formatting of long function signature #3010
- ๐ Fix indent computation of a macro with braces c3edf6d
- Format generics on associated types #3035
- Incorrect indentation of multiline block match expression #3042
- ๐ Fix bug in import where two consecutive module separators were possible 98a0ef2
- Prevent right-shifting of block comments with bare lines 5fdb6db
-
v0.99.4 Changes
August 27, 2018โ Added
- ๐ Handle formatting of underscore imports #2951
- ๐ Handle formatting of try blocks #2965
๐ Changed
- Update rustc-ap-rustc_target to 237.0.0, rustc-ap-syntax to 237.0.0, and rustc-ap-syntax_pos to 237.0.0 ca19c9a
- Consider
dev
channel as nightly for unstable features #2948
๐ Fixed
- ๐ Fix formatting of patterns with ellipsis # 2942
-
v0.99.3 Changes
August 23, 2018โ Added
- ๐ Use path attribute when searching for modules #2901
- ๐ฆ Expose FileLines JSON representation to allow external libraries to use the file_lines option #2915
๐ Changed
- Replace '--conifig-help' with '--config=help' cb10e06
- ๐ Improve formatting of slice patterns #2912
๐ Fixed
- Format chains with comment #2899
- ๐ Fix indentation of formatted macro body #2920
- ๐ Fix indentation of block comments f23e6aa