rustfmt v1.0.2 Release Notes
Release Date: 2019-02-12 // about 5 years ago-
โ 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