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