fmt-rfcs
fmt-rfcs copied to clipboard
RFCs for Rust formatting guidelines and changes to Rustfmt
https://github.com/rust-lang/rfcs/pull/3722 seems likely to land albeit for some future edition beyond 2024, and when it does I would propose we remove the [existing ABI prescriptions](https://doc.rust-lang.org/nightly/style-guide/items.html?highlight=ABI#extern-items) from the Style Guide text...
The current style guide for `match` has some rather unfortunate consequences. rustfmt will turn ``` pat => very_long_expr, pat => short_expr ``` into ``` pat => very_long_expr, pat => short_expr...
Asking this in response to https://github.com/rust-lang/rustfmt/issues/6332. Not sure if this is a style guide bug, a rustfmt bug, or if the style guide is underspecified (or maybe I'm looking in...