]> git.lizzy.rs Git - rust.git/blob - CHANGELOG.md
Do not put comment's line start and closer on the same line
[rust.git] / CHANGELOG.md
1 # Changelog
2
3 ## [Unreleased]
4
5 ## [0.3.2] 2017-12-15
6
7 ### Changed
8
9 - Warn when unkown configuration option is used.
10
11 ### Fixed
12
13 - Rustup to `rustc 1.24.0-nightly (0077d128d 2017-12-14)`.
14
15 ## [0.3.1] 2017-12-11
16
17 ### Added
18
19 - Add `error_on_unformatted` configuration option.
20 - Add `--error-on-unformatted` command line option.
21
22 ### Changed
23
24 - Do not report formatting errors on comments or strings by default.
25 - Rename `error_on_line_overflow_comments` to `error_on_unformatted`.
26
27 ### Fixed
28
29 - Fix formatting bugs.
30 - Fix adding a trailing whitespace inside code block when `wrap_comments = true`.
31
32 ## [0.3.0] 2017-12-11
33
34 ### Added
35
36 - Support nested imports.
37
38 ### Changed
39
40 - Do not report errors on skipped items.
41 - Do not format code block inside comments when `wrap_comments = true`.
42 - Keep vertical spaces between items within range.
43 - Format `format!` and its variants using compressed style.
44 - Format `write!` and its variants using compressed style.
45 - Format **simple** array using compressed style.
46
47 ### Fixed
48
49 - Fix `rustfmt --package package_name` not working properly.
50 - Fix formatting bugs.
51
52 ## [0.2.17] 2017-12-03
53
54 ### Added
55
56 - Add `blank_lines_lower_bound` and `blank_lines_upper_bound` configuration options.
57
58 ### Changed
59
60 - Combine configuration options related to width heuristic into `width_heuristic`.
61 - If the match arm's body is `if` expression, force to use block.
62
63 ### Fixed
64
65 - Fix `cargo fmt --all` being trapped in an infinite loop.
66 - Fix many formatting bugs.
67
68 ### Removed
69
70 - Remove legacy configuration options.
71
72 ## [0.2.16] 2017-11-21
73
74 ### Added
75
76 - Remove empty lines at the beginning of the file.
77 - Soft wrapping on doc comments.
78
79 ### Changed
80
81 - Break before `|` when using multiple lines for match arm patterns.
82 - Combine `control_style`, `where_style` and `*_indent` config options into `indent_style`.
83 - Combine `item_brace_style` and `fn_brace_style` config options into `brace_style`.
84 - Combine config options related spacing around colons into `space_before_colon` and `space_after_colon`.
85
86 ### Fixed
87
88 - Fix many bugs.
89
90 ## [0.2.15] 2017-11-08
91
92 ### Added
93
94 - Add git-fmt tool
95 - `where_single_line` configuration option.
96
97 ### Changed
98
99 - Rename `chain_one_line_max` to `chain_width`.
100 - Change the suffix of indent-related configuration options to `_indent`.
101
102 ## [0.2.14] 2017-11-06
103
104 ### Fixed
105
106 - Rustup to the latest nightly.
107
108 ## [0.2.13] 2017-10-30
109
110 ### Fixed
111
112 - Rustup to the latest nightly.
113
114 ## [0.2.12] 2017-10-29
115
116 ### Fixed
117
118 - Fix a bug that `cargo fmt` hangs forever.
119
120 ## [0.2.11] 2017-10-29
121
122 ### Fixed
123
124 - Fix a bug that `cargo fmt` crashes.
125
126 ## [0.2.10] 2017-10-28
127
128 ## [0.2.9] 2017-10-16
129
130 ## [0.2.8] 2017-09-28
131
132 ## [0.2.7] 2017-09-21
133
134 ### Added
135
136 - `binop_separator` configuration option (#1964).
137
138 ### Changed
139
140 - Use horizontal layout for function call with a single argument.
141
142 ### Fixed
143
144 - Fix panicking when calling `cargo fmt --all` (#1963).
145 - Refactorings & faster rustfmt.
146
147 ## [0.2.6] 2017-09-14
148
149 ### Fixed
150
151 - Fix a performance issue with nested block (#1940).
152 - Refactorings & faster rustfmt.
153
154 ## [0.2.5] 2017-08-31
155
156 ### Added
157
158 - Format and preserve attributes on statements (#1933).
159
160 ### Fixed
161
162 - Use getters to access `Span` fields (#1899).
163
164 ## [0.2.4] 2017-08-30
165
166 ### Added
167
168 - Add support for `Yield` (#1928).
169
170 ## [0.2.3] 2017-08-30
171
172 ### Added
173
174 - `multiline_closure_forces_block` configuration option (#1898).
175 - `multiline_match_arm_forces_block` configuration option (#1898).
176 - `merge_derives` configuration option (#1910).
177 - `struct_remove_empty_braces` configuration option (#1930).
178 - Various refactorings.
179
180 ### Changed
181
182 - Put single-lined block comments on the same line with list-like structure's item (#1923).
183 - Preserve blank line between doc comment and attribute (#1925).
184 - Put the opening and the closing braces of enum and struct on the same line, even when `item_brace_style = "AlwaysNextLine"` (#1930).
185
186 ### Fixed
187
188 - Format attributes on `ast::ForeignItem` and take max width into account (#1916).
189 - Ignore empty lines when calculating the shortest indent width inside macro with braces (#1918).
190 - Handle tabs properly inside macro with braces (#1918).
191 - Fix a typo in `compute_budgets_for_args()` (#1924).
192 - Recover comment between keyword (`impl` and `trait`) and `{` which used to get removed (#1925).