|
16 | 16 | } |
17 | 17 | } |
18 | 18 | ``` |
19 | | -- Calling methods on float literals ending in `.` will now be wrappen in parenthesis. e.g. `0. .to_string()` will be formatted as `(0.).to_string()` [#5791](https://github.com/rust-lang/rustfmt/issues/5791) |
| 19 | +- Calling methods on float literals ending in `.` will now be wrapped in parenthesis. e.g. `0. .to_string()` will be formatted as `(0.).to_string()` [#5791](https://github.com/rust-lang/rustfmt/issues/5791) |
20 | 20 | - Prevent ICE when formatting empty `macro_rules!` branch [#5730](https://github.com/rust-lang/rustfmt/issues/5730) |
21 | 21 | ```rust |
22 | 22 | macro_rules! statement { |
|
25 | 25 | ``` |
26 | 26 | - Prevent ICE when formatting `vec!{}` [#5735](https://github.com/rust-lang/rustfmt/issues/5735) |
27 | 27 | - Prevent internal trailing whitespace error when formatting an empty `macro_rules!` defintion e.g. `macro_rules! foo {}` [#5882](https://github.com/rust-lang/rustfmt/issues/5882) |
28 | | -- When formatting doc comments lines that start with `.` or `)` won't be treated as ordered markdown lists if `.` or `)` aren't follwed by a number [#5835](https://github.com/rust-lang/rustfmt/pull/5835) |
| 28 | +- Formatting doc comment lines that start with `.` or `)` won't be treated as ordered markdown lists because `.` or `)` must be preceded by a number to start an ordered markdown list [#5835](https://github.com/rust-lang/rustfmt/pull/5835) |
29 | 29 | - Add parenthesis around closures when they're used as method receives, don't have a block body, and end with `.` [#4808](https://github.com/rust-lang/rustfmt/issues/4808) |
30 | 30 | ```rust |
31 | 31 | fn main() { |
|
83 | 83 | - Support for formatting let-else statements [#5690] |
84 | 84 | - New config option, `single_line_let_else_max_width`, that allows users to configure the maximum length of single line `let-else` statements. `let-else` statements that otherwise meet the requirements to be formatted on a single line will have their divergent`else` block formatted over multiple lines if they exceed this length [#5684] |
85 | 85 |
|
86 | | -<<<<<<< HEAD |
87 | | -[#5690]: (https://github.com/rust-lang/rustfmt/pulls/5690) |
88 | | -======= |
89 | 86 | [#5690]: https://github.com/rust-lang/rustfmt/pull/5690 |
90 | | ->>>>>>> upstream/master |
91 | 87 | [#5684]: https://github.com/rust-lang/rustfmt/issues/5684 |
92 | 88 |
|
93 | 89 | ## [1.5.3] 2023-06-20 |
|
96 | 92 |
|
97 | 93 | - When formatting doc comments with `wrap_comments = true` rustfmt will no longer wrap markdown tables [#4210](https://github.com/rust-lang/rustfmt/issues/4210) |
98 | 94 | - Properly handle wrapping comments that include a numbered list in markdown [#5416](https://github.com/rust-lang/rustfmt/issues/5416) |
99 | | -<<<<<<< HEAD |
100 | | -- Properly handle markdown sublists that utilize a `+` [#4041](https://github.com/rust-lang/rustfmt/issues/4210) |
101 | | -======= |
102 | 95 | - Properly handle markdown sublists that utilize a `+` [#4041](https://github.com/rust-lang/rustfmt/issues/4041) |
103 | | ->>>>>>> upstream/master |
104 | 96 | - rustfmt will no longer use shorthand initialization when rewriting a tuple struct even when `use_field_init_shorthand = true` as this leads to code that could no longer compile. |
105 | 97 | Take the following struct as an example `struct MyStruct(u64);`. rustfmt will no longer format `MyStruct { 0: 0 }` as `MyStruct { 0 }` [#5488](https://github.com/rust-lang/rustfmt/issues/5488) |
106 | 98 | - rustfmt no longer panics when formatting an empty code block in a doc comment with `format_code_in_doc_comments = true` [#5234](https://github.com/rust-lang/rustfmt/issues/5234). For example: |
|
0 commit comments