rustfmt v1.5.1 Release Notes

Release Date: 2022-06-24 // almost 2 years ago
  • N.B A bug was introduced in v1.5.0/nightly-2022-06-15 which modified formatting. If you happened to run rustfmt over your code with one of those ~10 nightlies it's possible you may have seen formatting changes, and you may see additional changes after this fix since that bug has now been reverted.

    ๐Ÿ›  Fixed

    • Correct an issue introduced in v1.5.0 where formatting changes were unintentionally introduced in a few cases with a large/long construct in a right hand side position (e.g. a large chain on the RHS of a local/assignment statement)
    • cargo fmt --version properly displays the version value again #5395

    ๐Ÿ”„ Changed

    • 0๏ธโƒฃ Properly sort imports containing raw identifiers #3791 (note this is change version gated, and not applied by default)

    โž• Added

    • Add new configuration option, doc_comment_code_block_width, which allows for setting a shorter width limit to use for formatting code snippets in doc comments #5384

    Install/Download Options

    • rustup (nightly) - nightly-2022-06-24
    • ๐Ÿš€ GitHub Release Binaries - Release v1.5.1
    • ๐Ÿ— Build from source - Tag v1.5.1, see instructions for how to [install rustfmt from source][install-from-source]