rustfmt v0.99.6 Release Notes

Release Date: 2018-10-18 // over 5 years ago
  • โž• 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