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