rustfmt v0.9.0 Release Notes
Release Date: 2018-08-01 // over 5 years ago-
โ Added
- ๐ Handle raw identifiers 3027c21
- Format async closure 60ce411
- โ Add max_width option for all heuristics c2ae39e
- Add config option
format_macro_matchers
to format the metavariable matching patterns in macros 79c5ee8 - Add config option
format_macro_bodies
to format the bodies of macros 79c5ee8 - Format exitential type fc307ff
- ๐ Support raw identifiers in struct expressions f121b1a
- Format Async block and async function 0b25f60
๐ Changed
- Update rustc-ap-rustc_target to 211.0.0, rustc-ap-syntax to 211.0.0, and rustc-ap-syntax_pos to 211.0.0
- Put each nested import on its own line while putting non-nested imports on the same line as much as possible 42ab258
- Respect
empty_item_single_line
config option when formatting empty impls. Put thewhere
on its own line to improve readability #2771 - Strip leading
|
in match arm patterns 1d4b988 - Apply short function call heuristic to attributes 3abebf9
- Indent a match guard if the pattern is multiline be4d37d
- ๐
Change default newline style to
Native
9d8f381 - ๐ Improve formatting of series of binop expressions a4cdb68
- Trigger an internal error if we skip formatting due to a lost comment b085113
- ๐จ Refactor chain formatting #2838
๐ Fixed
- Do not insert spaces around braces with empty body or multiple lines 2f65852
- ๐ Allow using mixed layout with comments #2766
- ๐ Handle break labels #2726
- ๐ fix rewrite_string when a line feed is present 472a2ed
- ๐ Fix an anomaly with comments and array literals b28a0cd
- Check for comments after the
=>
in a match arm 6899471