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