]> git.lizzy.rs Git - rust.git/blob - CHANGELOG.md
9fa24eee62cd12adfc718c05d0c5d770debc9aff
[rust.git] / CHANGELOG.md
1 # Changelog
2
3 ## [Unreleased]
4
5 ## [1.3.2] 2019-07-06
6
7 ### Fixed
8
9 - Fix rustfmt from crashing when `async!` macro call is used in a method chain.
10 - Fix rustfmt not recognizing a package whose name differs from its directory's name.
11
12 ## [1.3.1] 2019-06-30
13
14 ### Added
15
16 - Implement the `Display` trait on the types of `Config`.
17
18 ### Changed
19
20 - `ignore` configuration option now only supports paths separated by `/`. Windows-style paths are not supported.
21 - Running `cargo fmt` in a sub-directory of a project is now supported.
22
23 ### Fixed
24
25 - Fix bugs that may cause rustfmt to crash.
26
27 ## [1.3.0] 2019-06-09
28
29 ### Added
30
31 - Format modules defined inside `cfg_if` macro calls #3600
32
33 ### Changed
34
35 - Change option `format_doc_comment` to `format_code_in_doc_comment`.
36 - `use_small_heuristics` changed to be an enum and stabilised. Configuration
37   options are now ready for 1.0.
38 - Stabilise `fn_args_density` configuration option and rename it to `fn_args_layout` #3581
39 - Update `rustc-ap-*` crates to 486.0.0
40 - Ignore sub-modules when skip-children is used #3607
41 - Removed bitrig support #3608
42
43 ### Fixed
44
45 - `wrap_comments` should not imply `format_doc_comments` #3535
46 - Incorrect handling of const generics #3555
47 - Add the handling for `vec!` with paren inside macro #3576
48 - Format trait aliases with where clauses #3586
49 - Catch panics from the parser while rewriting macro calls #3589
50 - Fix erasing inner attributes in struct #3593
51 - Inline the attribute with its item even with the `macro_use` attribute or when `reorder_imports` is disabled #3598
52 - Fix the bug add unwanted code to impl #3602
53
54 ## [1.2.2] 2019-04-24
55
56 ### Fixed
57
58 - Fix processing of `ignore` paths #3522
59 - Attempt to format attributes if only they exist #3523
60
61 ## [1.2.1] 2019-04-18
62
63 ### Added
64
65 - Add `--print-config current` CLI option b473e65
66 - Create GitHub [page](https://rust-lang.github.io/rustfmt/) for Configuration.md #3485
67
68 ### Fixed
69
70 - Keep comment appearing between parameter's name and its type #3491
71 - Do not delete semicolon after macro call with square brackets #3500
72 - Fix `--version` CLI option #3506
73 - Fix duplication of attributes on a match arm's body #3510
74 - Avoid overflowing item with attributes #3511
75
76 ## [1.2.0] 2019-03-27
77
78 ### Added
79
80 - Add new attribute `rustfmt::skip::macros` to prevent rustfmt from formatting a macro #3454
81
82 ### Changed
83
84 - Discard error report in silent_emitter #3466
85
86 ### Fixed
87
88 - Fix bad performance on deeply nested binary expressions #3467
89 - Use BTreeMap to guarantee consistent ordering b4d4b57
90
91 ## [1.1.1] 2019-03-21
92
93 ### Fixed
94
95 - Avoid panic on macro inside deeply nested block c9479de
96 - Fix line numbering in missed spans and handle file_lines in edge cases cdd08da
97 - Fix formatting of async blocks 1fa06ec
98 - Avoid duplication on the presence of spaces between macro name and `!` #3464
99
100 ## [1.1.0] 2019-03-17
101
102 ### Added
103
104 - Add `inline_attribute_width` configuration option to write an item and its attribute on the same line if their combined width is below a threshold #3409
105 - Support `const` generics f0c861b
106 - Support path clarity module #3448
107
108 ### Changed
109
110 - Align loop and while formatting 7d9a2ef
111 - Support `EmitMode::ModifiedLines` with stdin input #3424
112 - Update `rustc-ap-*` crates to 407.0.0
113 - Remove trailing whitespaces in missing spans 2d5bc69
114
115 ### Fixed
116
117 - Do not remove comment in the case of no arg 8e3ef3e
118 - Fix `Ident of macro+ident gets duplicated` error 40ff078
119 - Format the if expression at the end of the block in a single line 5f3dfe6
120
121 ## [1.0.3] 2019-02-14
122
123 ### Added
124
125 - Point unstable options to tracking issues 412dcc7
126
127 ### Changed
128
129 - Update `rustc-ap-*` crates to 373.0.0
130
131 ## [1.0.2] 2019-02-12
132
133 ### Added
134
135 - Add a [section](https://github.com/rust-lang/rustfmt/blob/ae331be/Contributing.md#version-gate-formatting-changes) to the Contributing.md file about version-gating formatting changes 36e2cb0
136 - Allow specifying package with `-p` CLI option a8d2591
137 - Support `rustfmt::skip` on imports #3289
138 - Support global `rustfmt.toml` to be written in user config directory #3280
139 - Format visibility on trait alias 96a3df3
140
141 ### Changed
142
143 - Do not modify original source code inside macro call #3260
144 - Recognize strings inside comments in order to avoid indenting them baa62c6
145 - Use Unicode-standard char width to wrap comments or strings a01990c
146 - Change new line point in the case of no args #3294
147 - Use the same formatting rule between functions and macros #3298
148 - 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
149
150 ### Fixed
151
152 - rewrite_comment: fix block fallback when failing to rewrite an itemized block ab7f4e1
153 - Catch possible tokenizer panics #3240
154 - Fix macro indentation on Windows #3266
155 - Fix shape when formatting return or break expr on statement position #3259
156 - rewrite_comment: fix block fallback when failing to rewrite an itemized block
157 - Keep leading double-colon to respect the 2018 edition of rust's paths a2bfc02
158 - Fix glob and nested global imports 2125ad2
159 - Do not force trailing comma when using mixed layout #3306
160 - Prioritize `single_line_fn` and `empty_item_single_line` over `brace_style` #3308
161 - Fix `internal error: left behind trailing whitespace` with long lines c2534f5
162 - Fix attribute duplication #3325
163 - Fix formatting of strings within a macro 813aa79
164 - Handle a macro argument with a single keyword 9a7ea6a
165
166 ## [1.0.1] 2018-12-09
167
168 ### Added
169
170 - Add a `version` option 378994b
171
172 ### Changed
173
174 - End expressions like return/continue/break with a semicolon #3223
175 - 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
176
177 ### Fixed
178
179 - Allow to run a rustfmt command from cargo-fmt even when there is no target a2da636
180 - Fix `un-closed delimiter` errors when formatting break labels 40174e9
181
182 ## [1.0.0] 2018-11-19
183
184 ### Changed
185
186 - Preserve possibly one whitespace for brace macros 1a3bc79
187 - Prefer to break arguments over putting output type on the next line 1dd54e6
188
189 ## [0.99.9] 2018-11-15
190
191 ### Changed
192
193 - 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
194 - Don't align comments on `extern crate`s dd7add7
195
196 ## [0.99.8] 2018-11-14
197
198 ### Added
199
200 - Add `overflow_delimited_expr` config option to more aggressively allow overflow #3175
201
202 ### Fixed
203
204 - Fix the logic for retaining a comment before the arrow in a match #3181
205 - Do not wrap comments in doctest to avoid failing doctest runs #3183
206 - Fix comment rewriting that was wrapping code into a line comment #3188
207 - Fix formatting of unit-struct with `where`-clause #3200
208
209 ## [0.99.7] 2018-11-07
210
211 ### Changed
212
213 - Force a newline after the `if` condition if there is a different indentation level #3109
214 - Use correct width when formatting type on local statement #3126
215 - Treat crates non-alphabetically when ordering 799005f
216 - Fix formatting of code that is annotated with rustfmt::skip #3113
217 - Stabilize `edition` configuration option 9c3ae2d
218 - cargo-fmt: detect Rust edition in use #3129
219 - Trim the indentation on macros which heuristically appear to use block-style indentation #3178
220
221 ### Fixed
222
223 - Do not remove path disambiugator inside macro #3142
224 - Improve handling of Windows newlines #3141
225 - Fix alignment of a struct's fields (`struct_field_align_threshold` option) with the Visual `indent_style` #3165
226 - Fix a bug in formatting markdown lists within comments #3172
227
228 ## [0.99.6] 2018-10-18
229
230 ### Added
231
232 - Add `enum_discrim_align_threshold` option to vertically align enum discriminants cc22869
233 - Add `println!`-like heuristic to the `fail` attribute #3067
234 - Handle itemized items inside comments #3083
235 - Add `format_doc_comments` configuration option to control the formatting of code snippets inside comments #3089
236
237 ### Changed
238
239 - Makes brace behavior consistent with empty bodies for traits and impls 2727d41
240 - Consider a multi-lined array as a block-like expression #3969
241 - Improve formatting of strings #3073
242 - Get rid of extra commas in Visual struct literal formatting #3077
243 - 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
244 - Format macro calls with item-like arguments #3080
245 - Avoid control flow expressions conditions to go multi line ef59b34
246 - Simplify multi-lining binop expressions #3101
247
248 ### Fixed
249
250 - Do not format a code block in documentation if it is annotated with ignore or text 2bcc3a9
251 - Fix inconsistent overflow behavior in Visual style #3078
252 - Fix corner cases of the string formatting implementation #3083
253 - Do not add parens around lifetimes 0ac68c9
254 - Catch parser panic in format_snippet 8c4e92a
255
256 ## [0.99.5] 2018-09-25
257
258 ### Added
259
260 - Handle leading module separator for 2018 Edition #2952
261 - Add configuration option `normalize_doc_attributes`: convert doc attributes to comments #3002
262
263 ### Changed
264
265 - Accept 2015 and 2018 instead of Edition2015 and Edition2018 for edition option eec7436
266 - Support platforms without a timer 46e2a2e
267 - 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
268
269 ### Fixed
270
271 - Format of attributes with commas #2971
272 - Fix optional arg condensing #2972
273 - Improve formatting of long function parameters #2981
274 - Fix formatting of raw string literals #2983
275 - Handle chain with try operators with spaces #2986
276 - Use correct shape in Visual tuple rewriting #2987
277 - Impove formatting of arguments with `visual_style = "Visual"` option #2988
278 - Change `print_diff` to output the correct line number 992b179
279 - Propagate errors about failing to rewrite a macro 6f318e3
280 - Handle formatting of long function signature #3010
281 - Fix indent computation of a macro with braces c3edf6d
282 - Format generics on associated types #3035
283 - Incorrect indentation of multiline block match expression #3042
284 - Fix bug in import where two consecutive module separators were possible 98a0ef2
285 - Prevent right-shifting of block comments with bare lines 5fdb6db
286
287 ## [0.99.4] 2018-08-27
288
289 ### Added
290
291 - Handle formatting of underscore imports #2951
292 - Handle formatting of try blocks #2965
293
294 ### Changed
295
296 - 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
297 - Consider `dev` channel as nightly for unstable features #2948
298
299 ### Fixed
300
301 - Fix formatting of patterns with ellipsis # 2942
302
303 ## [0.99.3] 2018-08-23
304
305 ### Added
306
307 - Use path attribute when searching for modules #2901
308 - Expose FileLines JSON representation to allow external libraries to use the file_lines option #2915
309
310 ### Changed
311
312 - Replace '--conifig-help' with '--config=help' cb10e06
313 - Improve formatting of slice patterns #2912
314
315 ### Fixed
316
317 - Format chains with comment #2899
318 - Fix indentation of formatted macro body #2920
319 - Fix indentation of block comments f23e6aa
320
321 ## [0.99.2] 2018-08-07
322
323 ### Changed
324
325 - Update rustc-ap-rustc_target to 218.0.0, rustc-ap-syntax to 218.0.0, and rustc-ap-syntax_pos to 218.0.0 5c9a2b6
326 - Combine function-like attributes #2900
327
328 ### Fixed
329
330 - Explicitly handle semicolon after the item in statement position d96e3ca
331 - Fix parsing '#'-hiding of rustdoc 2eca09e
332
333 ## [0.99.1] 2018-08-04
334
335 ### Fixed
336
337 - fix use statements ordering when a number is present 1928ae7
338
339 ## [0.99.0] 2018-08-03
340
341 - 1.0 RC release
342
343 ### Changed
344
345 - Clarification in README.md 30fe66b
346
347 ## [0.9.0] 2018-08-01
348
349 ### Added
350
351 - Handle raw identifiers 3027c21
352 - Format async closure 60ce411
353 - Add max_width option for all heuristics c2ae39e
354 - Add config option `format_macro_matchers` to format the metavariable matching patterns in macros 79c5ee8
355 - Add config option `format_macro_bodies` to format the bodies of macros 79c5ee8
356 - Format exitential type fc307ff
357 - Support raw identifiers in struct expressions f121b1a
358 - Format Async block and async function 0b25f60
359
360 ### Changed
361
362 - 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
363 - Put each nested import on its own line while putting non-nested imports on the same line as much as possible 42ab258
364 - Respect `empty_item_single_line` config option when formatting empty impls. Put the `where` on its own line to improve readability #2771
365 - Strip leading `|` in match arm patterns 1d4b988
366 - Apply short function call heuristic to attributes 3abebf9
367 - Indent a match guard if the pattern is multiline be4d37d
368 - Change default newline style to `Native` 9d8f381
369 - Improve formatting of series of binop expressions a4cdb68
370 - Trigger an internal error if we skip formatting due to a lost comment b085113
371 - Refactor chain formatting #2838
372
373 ### Fixed
374
375 - Do not insert spaces around braces with empty body or multiple lines 2f65852
376 - Allow using mixed layout with comments #2766
377 - Handle break labels #2726
378 - fix rewrite_string when a line feed is present 472a2ed
379 - Fix an anomaly with comments and array literals b28a0cd
380 - Check for comments after the `=>` in a match arm 6899471
381
382 ## [0.8.0,0.8.1,0.8.2] 2018-05-28
383
384 ### Added
385
386 - Use scoped attributes for skip attribute https://github.com/rust-lang/rustfmt/pull/2703
387
388 ### Changed
389
390 - Comment options `wrap_comments` and `normalize_comments` are reverted back to unstable 416bc4c
391 - Stabilise `reorder_imports` and `reorder_modules` options 7b6d2b4
392 - Remove `spaces_within_parens_and_brackets` option d726492
393 - Stabilise shorthand options: `use_try_shorthand`, `use_field_init_shorthand`, and `force_explicit_abi` 8afe367
394 - Stabilise `remove_nested_parens` and set default to true a70f716
395 - Unstabilise `unstable_features` dd9c15a
396 - Remove `remove_blank_lines_at_start_or_end_of_block` option 2ee8b0e
397 - Update rustc-ap-syntax to 146.0.0 and rustc-ap-rustc_target to 146.0.0 2c275a2
398 - Audit the public API #2639
399
400 ### Fixed
401
402 - Handle code block in doc comment without rust prefix f1974e2
403
404 ## [0.7.0] 2018-05-14
405
406 ### Added
407
408 - Add integration tests against crates in the rust-lang-nursery c79f39a
409
410 ### Changed
411
412 - Update rustc-ap-syntax to 128.0.0 and ustc-ap-rustc_target to 128.0.0 195395f
413 - Put operands on its own line when each fits in a single line f8439ce
414 - Improve CLI options 55ac062 1869888 798bffb 4d9de48 eca7796 8396da1 5d9f5aa
415
416 ### Fixed
417
418 - Use correct line width for list attribute 61a401a
419 - Avoid flip-flopping impl items when reordering them 37c216c
420 - Formatting breaks short lines when max_width is less than 100 9b36156
421 - Fix variant "Mixed" of imports_layout option 8c8676c
422 - Improve handling of long lines f885039
423 - Fix up lines exceeding max width 51c07f4
424 - Fix handling of modules in non_modrs_mods style cf573e8
425 - Do not duplicate attributes on use items e59ceaf
426 - Do not insert an extra brace in macros with native newlines 4c9ef93
427
428 ## [0.6.1] 2018-05-01
429
430 ### Changed
431
432 - Change the default value of imports_indent to IndentStyle::Block https://github.com/rust-lang/rustfmt/pull/2662
433
434 ### Fixed
435
436 - Handle formatting of auto traits 5b5a72c
437 - Use consistent formatting for empty enum and struct https://github.com/rust-lang/rustfmt/pull/2656
438
439 ## [0.6.0] 2018-04-20
440
441 ### Changed
442
443 - Improve public API 8669004
444
445 ## [0.5.0] 2018-04-20
446
447 ### Added
448
449 - Add `verbose-diff` CLI option 5194984
450
451 ### Changed
452
453 - Update rustc-ap-syntax to 103.0.0 dd807e2
454 - Refactor to make a sensible public API ca610d3
455
456 ### Fixed
457
458 - Add spaces between consecutive `..` `..=` 61d29eb
459
460 ## [0.4.2] 2018-04-12
461
462 ### Added
463
464 - Handle binary operators and lifetimes 0fd174d
465 - Add reorder_impl_items config option 94f5a05
466 - Add `--unstable-features` CLI option to list unstable options from the `--help` output 8208f8a
467 - Add merge_imports config option 5dd203e
468
469 ### Changed
470
471 - Format macro arguments with vertical layout ec71459
472 - Reorder imports by default 164cf7d
473 - Do not collapse block around expr with condition on match arm 5b9b7d5
474 - Use vertical layout for complex attributes c77708f
475 - Format array using heuristics for function calls 98c6f7b
476 - Implement stable ordering for impl items with the the following item priority: type, const, macro, then method fa80ddf
477 - Reorder imports by default 164cf7d
478 - Group `extern crate` by default 3a138a2
479 - Make `error_on_line_overflow` false by default f146711
480 - Merge imports with the same prefix into a single nested import 1954513
481 - Squash the various 'reorder imports' option into one 911395a
482
483 ### Fixed
484
485 - Print version is missing the channel ca6fc67
486 - Do not add the beginning vert to the match arm 1e1d9d4
487 - Follow indent style config when formatting attributes efd295a
488 - Do not insert newline when item is empty a8022f3
489 - Do not indent or unindent inside string literal ec1907b
490
491 ## [0.4.1] 2018-03-16
492
493 ### Added
494
495 - Add `ignore` configuration option.
496 - Add `license_template_path` configuration option.
497 - Format `lazy_static!`.
498
499 ### Fixed
500
501 - Fix formatting bugs.
502 - Fix setting `reorder_modules` removing inline modules.
503 - Format attributes on block expressions.
504 - Support `dyn trait` syntax.
505 - Support multiple patterns in `if let` and `while let`.
506 - Support a pattern with parentheses.
507
508 ## [0.4.0] 2018-03-02
509
510 ### Changed
511
512 - Do not print verbose outputs when formatting with stdin.
513 - Preserve trailing whitespaces in doc comments.
514 - Scale the values of width heuristics by `max_width`.
515
516 ### Fixed
517
518 - Do not reorder items with `#[macro_use]`.
519 - Fix formatting bugs.
520 - Support the beginning `|` on a match arm.
521
522 ## [0.3.8] 2018-02-04
523
524 ### Added
525
526 - Format (or at least try to format) `macro_rules!`.
527
528 ## [0.3.7] 2018-02-01
529
530 ### Added
531
532 - Add `use_field_init_shorthand` config option.
533 - Add `reorder_modules` configuration option.
534
535 ## [0.3.6] 2018-01-18
536
537 ### Fixed
538
539 - Fix panicking on formatting certain macros (#2371).
540
541 ## [0.3.5] 2018-01-15
542
543 ### Changed
544
545 - Format code block in comments when `wrap_comments` is set to `true`.
546 - Remove `same_line_attributes` configuration option.
547 - Rename `git-fmt` to `git-rustfmt`.
548
549 ### Fixed
550
551 - Rustup to `rustc 1.25.0-nightly (e6072a7b3 2018-01-13)`.
552 - Fix formatting bugs.
553
554 ## [0.3.4] 2017-12-23
555
556 ### Added
557
558 - Add `--version` flag to `cargo-fmt`, allow `cargo fmt --version`.
559
560 ### Fixed
561
562 - Rustup to `rustc 1.24.0-nightly (5165ee9e2 2017-12-22)`.
563
564 ## [0.3.3] 2017-12-22
565
566 ### Added
567
568 - Format trait aliases.
569
570 ### Changed
571
572 - `cargo fmt` will format every workspace member.
573
574 ### Fixed
575
576 - Rustup to `rustc 1.24.0-nightly (250b49205 2017-12-21)`
577 - Fix formatting bugs.
578
579 ## [0.3.2] 2017-12-15
580
581 ### Changed
582
583 - Warn when unknown configuration option is used.
584
585 ### Fixed
586
587 - Rustup to `rustc 1.24.0-nightly (0077d128d 2017-12-14)`.
588
589 ## [0.3.1] 2017-12-11
590
591 ### Added
592
593 - Add `error_on_unformatted` configuration option.
594 - Add `--error-on-unformatted` command line option.
595
596 ### Changed
597
598 - Do not report formatting errors on comments or strings by default.
599 - Rename `error_on_line_overflow_comments` to `error_on_unformatted`.
600
601 ### Fixed
602
603 - Fix formatting bugs.
604 - Fix adding a trailing whitespace inside code block when `wrap_comments = true`.
605
606 ## [0.3.0] 2017-12-11
607
608 ### Added
609
610 - Support nested imports.
611
612 ### Changed
613
614 - Do not report errors on skipped items.
615 - Do not format code block inside comments when `wrap_comments = true`.
616 - Keep vertical spaces between items within range.
617 - Format `format!` and its variants using compressed style.
618 - Format `write!` and its variants using compressed style.
619 - Format **simple** array using compressed style.
620
621 ### Fixed
622
623 - Fix `rustfmt --package package_name` not working properly.
624 - Fix formatting bugs.
625
626 ## [0.2.17] 2017-12-03
627
628 ### Added
629
630 - Add `blank_lines_lower_bound` and `blank_lines_upper_bound` configuration options.
631
632 ### Changed
633
634 - Combine configuration options related to width heuristic into `width_heuristic`.
635 - If the match arm's body is `if` expression, force to use block.
636
637 ### Fixed
638
639 - Fix `cargo fmt --all` being trapped in an infinite loop.
640 - Fix many formatting bugs.
641
642 ### Removed
643
644 - Remove legacy configuration options.
645
646 ## [0.2.16] 2017-11-21
647
648 ### Added
649
650 - Remove empty lines at the beginning of the file.
651 - Soft wrapping on doc comments.
652
653 ### Changed
654
655 - Break before `|` when using multiple lines for match arm patterns.
656 - Combine `control_style`, `where_style` and `*_indent` config options into `indent_style`.
657 - Combine `item_brace_style` and `fn_brace_style` config options into `brace_style`.
658 - Combine config options related spacing around colons into `space_before_colon` and `space_after_colon`.
659
660 ### Fixed
661
662 - Fix many bugs.
663
664 ## [0.2.15] 2017-11-08
665
666 ### Added
667
668 - Add git-fmt tool
669 - `where_single_line` configuration option.
670
671 ### Changed
672
673 - Rename `chain_one_line_max` to `chain_width`.
674 - Change the suffix of indent-related configuration options to `_indent`.
675
676 ## [0.2.14] 2017-11-06
677
678 ### Fixed
679
680 - Rustup to the latest nightly.
681
682 ## [0.2.13] 2017-10-30
683
684 ### Fixed
685
686 - Rustup to the latest nightly.
687
688 ## [0.2.12] 2017-10-29
689
690 ### Fixed
691
692 - Fix a bug that `cargo fmt` hangs forever.
693
694 ## [0.2.11] 2017-10-29
695
696 ### Fixed
697
698 - Fix a bug that `cargo fmt` crashes.
699
700 ## [0.2.10] 2017-10-28
701
702 ## [0.2.9] 2017-10-16
703
704 ## [0.2.8] 2017-09-28
705
706 ## [0.2.7] 2017-09-21
707
708 ### Added
709
710 - `binop_separator` configuration option (#1964).
711
712 ### Changed
713
714 - Use horizontal layout for function call with a single argument.
715
716 ### Fixed
717
718 - Fix panicking when calling `cargo fmt --all` (#1963).
719 - Refactorings & faster rustfmt.
720
721 ## [0.2.6] 2017-09-14
722
723 ### Fixed
724
725 - Fix a performance issue with nested block (#1940).
726 - Refactorings & faster rustfmt.
727
728 ## [0.2.5] 2017-08-31
729
730 ### Added
731
732 - Format and preserve attributes on statements (#1933).
733
734 ### Fixed
735
736 - Use getters to access `Span` fields (#1899).
737
738 ## [0.2.4] 2017-08-30
739
740 ### Added
741
742 - Add support for `Yield` (#1928).
743
744 ## [0.2.3] 2017-08-30
745
746 ### Added
747
748 - `multiline_closure_forces_block` configuration option (#1898).
749 - `multiline_match_arm_forces_block` configuration option (#1898).
750 - `merge_derives` configuration option (#1910).
751 - `struct_remove_empty_braces` configuration option (#1930).
752 - Various refactorings.
753
754 ### Changed
755
756 - Put single-lined block comments on the same line with list-like structure's item (#1923).
757 - Preserve blank line between doc comment and attribute (#1925).
758 - Put the opening and the closing braces of enum and struct on the same line, even when `item_brace_style = "AlwaysNextLine"` (#1930).
759
760 ### Fixed
761
762 - Format attributes on `ast::ForeignItem` and take max width into account (#1916).
763 - Ignore empty lines when calculating the shortest indent width inside macro with braces (#1918).
764 - Handle tabs properly inside macro with braces (#1918).
765 - Fix a typo in `compute_budgets_for_args()` (#1924).
766 - Recover comment between keyword (`impl` and `trait`) and `{` which used to get removed (#1925).