rustfmt v1.0.2 Release Notes

Release Date: 2019-02-12 // about 5 years ago
  • โž• 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