|
1 | 1 | # Changelog
|
2 | 2 |
|
3 |
| -## [Unreleased] |
| 3 | +## [2.0.0] UNRELEASED |
| 4 | + |
| 5 | +### Added |
| 6 | + |
| 7 | +- Add `-r,--recursive` command line flag to `rustfmt`. |
| 8 | +- Add `-f,--force` command line flag to `rustfmt`. |
| 9 | +- Add `-l,--files-with-diff` command line flag to `rustfmt`. |
| 10 | +- Add `--check` command line flag to `cargo-fmt`. |
| 11 | +- Add `array_width` configuration option. |
| 12 | +- Add `attr_fn_like_width` configuration option. |
| 13 | +- Add `chain_width` configuration option. |
| 14 | +- Add `fn_call_width` configuration option. |
| 15 | +- Add `match_arm_leading_pipes` configuration option. |
| 16 | +- Add `single_line_if_else_max_width` configuration option. |
| 17 | +- Add `space_around_attr_eq` to configuration option. |
| 18 | +- Add `struct_lit_width` configuration option. |
| 19 | +- Add `struct_variant_width` configuration option. |
| 20 | + |
| 21 | +### Changed |
| 22 | + |
| 23 | +- Change the default edition to 2018. |
| 24 | +- Do not format sub-modules by default. |
| 25 | +- Do not overwrite files on critial errors by default. |
| 26 | +- Normalize an empty match arm to `{}`. |
| 27 | +- Rename `use_small_heuristics` to `width_heuristics` |
| 28 | +- Rename `fn_args_layout` to `fn_params_layout`. |
| 29 | +- Rename the default value of `width_heuristics` to `Scaled` from `Default`. |
| 30 | +- Update `rustc-ap-*` crates to 666.0.0. |
| 31 | + |
| 32 | +### Fixed |
| 33 | + |
| 34 | +- Fix `[rustfmt::skip::macros]` not working in certain places. |
| 35 | +- Fix to support new syntax. |
| 36 | +- Fix producing invalid code against certain inputs. |
| 37 | +- Fix changing the semantic of the code against certain inputs. |
| 38 | +- Fix removing comment in various places. |
| 39 | +- Fix various poor formattings. |
| 40 | + |
| 41 | +### Removed |
| 42 | + |
| 43 | +- Remove `--backup` command line flag from `rustfmt`. |
| 44 | +- Remove `disable_all_formatting` configuration option. |
| 45 | +- Remove `skip_children` configuration option. |
| 46 | +- Remove `report_fixme` configuration option. |
| 47 | +- Remove `report_todo` configuration option. |
| 48 | +- Remove `version` configuration option. |
| 49 | +- Remove `coverage` emit mode. |
| 50 | + |
| 51 | +### Stabilized |
| 52 | + |
| 53 | +- Stabilize `bin_op_separator` configuration option. |
| 54 | +- Stabilize `match_block_trailing_comma` configuration option. |
| 55 | +- Stabilize `ignore` configuration option. |
| 56 | + |
| 57 | +## [1.4.17] 2020-06-08 |
| 58 | + |
| 59 | +### Fixed |
| 60 | + |
| 61 | +- Fix `#![rustfmt::skip]` and its variants getting ignored. |
| 62 | + |
| 63 | +## [1.4.16] 2020-06-08 [YANKED] |
| 64 | + |
| 65 | +## [1.4.15] 2020-05-19 |
| 66 | + |
| 67 | +### Changed |
| 68 | + |
| 69 | +- Update `rustc-ap-*` crates to 659.0.0. |
| 70 | + |
| 71 | +## [1.4.14] 2020-04-14 |
| 72 | + |
| 73 | +### Changed |
| 74 | + |
| 75 | +- Update `rustc-ap-*` crates to 654.0.0. |
| 76 | + |
| 77 | +## [1.4.13] 2020-03-31 |
| 78 | + |
| 79 | +### Changed |
| 80 | + |
| 81 | +- Update `rustc-ap-*` crates to 650.0.0. |
| 82 | + |
| 83 | +## [1.4.12] 2020-02-10 |
| 84 | + |
| 85 | +### Changed |
| 86 | + |
| 87 | +- Update `rustc-ap-*` crates to 642.0.0. |
| 88 | + |
| 89 | +## [1.4.11] 2019-12-03 |
| 90 | + |
| 91 | +### Fixed |
| 92 | + |
| 93 | +- Fix adding an extra block to async closure. |
| 94 | + |
| 95 | +## [1.4.10] 2019-10-25 |
| 96 | + |
| 97 | +### Changed |
| 98 | + |
| 99 | +- Use the `--offline` mode if possible when invoking cargo metadata. |
| 100 | +- Update `rustc-ap-*` crates to 610.0.0. |
| 101 | + |
| 102 | +### Fixed |
| 103 | + |
| 104 | +- Fix ignoring newline settings when running in the `--check` mode. |
| 105 | +- Fix removing attributes on block. |
| 106 | +- Fix removing comments in various places. |
| 107 | +- Fix generating unparsable code when comments is at the end of function parameters. |
| 108 | +- Fix panicking against a closure with an empty block. |
| 109 | +- Fix various poor formattings. |
4 | 110 |
|
5 | 111 | ## [1.4.9] 2019-10-07
|
6 | 112 |
|
|
0 commit comments