All Versions
96
Latest Version
Avg Release Cycle
34 days
Latest Release
1432 days ago

Changelog History
Page 6

  • v1.0.2 Changes

    February 12, 2019

    โž• Added

    • โž• Add a section to the Contributing.md file about version-gating formatting changes 36e2cb0
    • ๐Ÿ‘ Allow specifying package with -p CLI option a8d2591
    • ๐Ÿ‘Œ Support rustfmt::skip on imports #3289
    • ๐Ÿ‘Œ Support global rustfmt.toml to be written in user config directory #3280
    • Format visibility on trait alias 96a3df3

    ๐Ÿ”„ Changed

    • Do not modify original source code inside macro call #3260
    • Recognize strings inside comments in order to avoid indenting them baa62c6
    • ๐Ÿ‘‰ Use Unicode-standard char width to wrap comments or strings a01990c
    • ๐Ÿ”„ Change new line point in the case of no args #3294
    • ๐Ÿ‘‰ Use the same formatting rule between functions and macros #3298
    • Update rustc-ap-rustc_target to 366.0.0, rustc-ap-syntax to 366.0.0, and rustc-ap-syntax_pos to 366.0.0

    ๐Ÿ›  Fixed

    • rewrite_comment: fix block fallback when failing to rewrite an itemized block ab7f4e1
    • Catch possible tokenizer panics #3240
    • ๐Ÿ›  Fix macro indentation on Windows #3266
    • ๐Ÿ›  Fix shape when formatting return or break expr on statement position #3259
    • rewrite_comment: fix block fallback when failing to rewrite an itemized block
    • Keep leading double-colon to respect the 2018 edition of rust's paths a2bfc02
    • ๐Ÿ›  Fix glob and nested global imports 2125ad2
    • Do not force trailing comma when using mixed layout #3306
    • Prioritize single_line_fn and empty_item_single_line over brace_style #3308
    • ๐Ÿ›  Fix internal error: left behind trailing whitespace with long lines c2534f5
    • ๐Ÿ›  Fix attribute duplication #3325
    • ๐Ÿ›  Fix formatting of strings within a macro 813aa79
    • ๐Ÿ– Handle a macro argument with a single keyword 9a7ea6a
  • v1.0.1 Changes

    December 09, 2018

    โž• Added

    • โž• Add a version option 378994b

    ๐Ÿ”„ Changed

    • End expressions like return/continue/break with a semicolon #3223
    • Update rustc-ap-rustc_target to 306.0.0, rustc-ap-syntax to 306.0.0, and rustc-ap-syntax_pos to 306.0.0

    ๐Ÿ›  Fixed

    • ๐Ÿ‘ Allow to run a rustfmt command from cargo-fmt even when there is no target a2da636
    • ๐Ÿ›  Fix un-closed delimiter errors when formatting break labels 40174e9
  • v1.0.0 Changes

    November 19, 2018

    ๐Ÿ”„ Changed

    • Preserve possibly one whitespace for brace macros 1a3bc79
    • Prefer to break arguments over putting output type on the next line 1dd54e6
  • v0.99.9 Changes

    November 15, 2018

    ๐Ÿ”„ Changed

    • Update rustc-ap-rustc_target to 297.0.0, rustc-ap-syntax to 297.0.0, to rustc-ap-syntax_pos to 297.0.0
    • Don't align comments on extern crates dd7add7
  • v0.99.8 Changes

    November 14, 2018

    โž• Added

    • Add overflow_delimited_expr config option to more aggressively allow overflow #3175

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix the logic for retaining a comment before the arrow in a match #3181
    • โœ… Do not wrap comments in doctest to avoid failing doctest runs #3183
    • ๐Ÿ›  Fix comment rewriting that was wrapping code into a line comment #3188
    • ๐Ÿ›  Fix formatting of unit-struct with where-clause #3200
  • v0.99.7 Changes

    November 07, 2018

    ๐Ÿ”„ Changed

    • ๐Ÿ‘ฎ Force a newline after the if condition if there is a different indentation level #3109
    • ๐Ÿ‘‰ Use correct width when formatting type on local statement #3126
    • Treat crates non-alphabetically when ordering 799005f
    • ๐Ÿ›  Fix formatting of code that is annotated with rustfmt::skip #3113
    • ๐Ÿ”ง Stabilize edition configuration option 9c3ae2d
    • cargo-fmt: detect Rust edition in use #3129
    • ๐Ÿ’… Trim the indentation on macros which heuristically appear to use block-style indentation #3178

    ๐Ÿ›  Fixed

    • ๐Ÿšš Do not remove path disambiugator inside macro #3142
    • ๐Ÿ‘Œ Improve handling of Windows newlines #3141
    • Fix alignment of a struct's fields (struct_field_align_threshold option) with the Visual indent_style #3165
    • ๐Ÿ›  Fix a bug in formatting markdown lists within comments #3172
  • v0.99.6 Changes

    October 18, 2018

    โž• Added

    • Add enum_discrim_align_threshold option to vertically align enum discriminants cc22869
    • โž• Add println!-like heuristic to the fail attribute #3067
    • ๐Ÿ– Handle itemized items inside comments #3083
    • Add format_doc_comments configuration option to control the formatting of code snippets inside comments #3089

    ๐Ÿ”„ Changed

    • ๐Ÿ‘‰ Makes brace behavior consistent with empty bodies for traits and impls 2727d41
    • Consider a multi-lined array as a block-like expression #3969
    • ๐Ÿ‘Œ Improve formatting of strings #3073
    • Get rid of extra commas in Visual struct literal formatting #3077
    • Update rustc-ap-rustc_target to 274.0.0, rustc-ap-syntax to 274.0.0, and rustc-ap-syntax_pos to 274.0.0
    • Format macro calls with item-like arguments #3080
    • Avoid control flow expressions conditions to go multi line ef59b34
    • Simplify multi-lining binop expressions #3101

    ๐Ÿ›  Fixed

    • ๐Ÿ“š Do not format a code block in documentation if it is annotated with ignore or text 2bcc3a9
    • ๐Ÿ›  Fix inconsistent overflow behavior in Visual style #3078
    • ๐Ÿ›  Fix corner cases of the string formatting implementation #3083
    • Do not add parens around lifetimes 0ac68c9
    • ๐Ÿ“œ Catch parser panic in format_snippet 8c4e92a
  • v0.99.5 Changes

    September 25, 2018

    โž• Added

    • ๐Ÿ– Handle leading module separator for 2018 Edition #2952
    • Add configuration option normalize_doc_attributes: convert doc attributes to comments #3002

    ๐Ÿ”„ Changed

    • Accept 2015 and 2018 instead of Edition2015 and Edition2018 for edition option eec7436
    • ๐Ÿ‘Œ Support platforms without a timer 46e2a2e
    • Update rustc-ap-rustc_target to 263.0.0, rustc-ap-syntax to 263.0.0, and rustc-ap-syntax_pos to 263.0.0

    ๐Ÿ›  Fixed

    • Format of attributes with commas #2971
    • ๐Ÿ›  Fix optional arg condensing #2972
    • ๐Ÿ‘Œ Improve formatting of long function parameters #2981
    • ๐Ÿ›  Fix formatting of raw string literals #2983
    • ๐Ÿ– Handle chain with try operators with spaces #2986
    • ๐Ÿ‘‰ Use correct shape in Visual tuple rewriting #2987
    • ๐Ÿ‘Œ Improve formatting of arguments with visual_style = "Visual" option #2988
    • ๐Ÿ”„ Change print_diff to output the correct line number 992b179
    • Propagate errors about failing to rewrite a macro 6f318e3
    • ๐Ÿ– Handle formatting of long function signature #3010
    • ๐Ÿ›  Fix indent computation of a macro with braces c3edf6d
    • Format generics on associated types #3035
    • Incorrect indentation of multiline block match expression #3042
    • ๐Ÿ›  Fix bug in import where two consecutive module separators were possible 98a0ef2
    • Prevent right-shifting of block comments with bare lines 5fdb6db
  • v0.99.4 Changes

    August 27, 2018

    โž• Added

    • ๐Ÿ– Handle formatting of underscore imports #2951
    • ๐Ÿ– Handle formatting of try blocks #2965

    ๐Ÿ”„ Changed

    • Update rustc-ap-rustc_target to 237.0.0, rustc-ap-syntax to 237.0.0, and rustc-ap-syntax_pos to 237.0.0 ca19c9a
    • Consider dev channel as nightly for unstable features #2948

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix formatting of patterns with ellipsis # 2942
  • v0.99.3 Changes

    August 23, 2018

    โž• Added

    • ๐Ÿ‘‰ Use path attribute when searching for modules #2901
    • ๐Ÿ”ฆ Expose FileLines JSON representation to allow external libraries to use the file_lines option #2915

    ๐Ÿ”„ Changed

    • Replace '--conifig-help' with '--config=help' cb10e06
    • ๐Ÿ‘Œ Improve formatting of slice patterns #2912

    ๐Ÿ›  Fixed

    • Format chains with comment #2899
    • ๐Ÿ›  Fix indentation of formatted macro body #2920
    • ๐Ÿ›  Fix indentation of block comments f23e6aa