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