Yacin Tmimi
Yacin Tmimi
### Break function return types before `->` instead of breaking between `()` for zero argument functions **Reference in codebase**: [items::rewrite_fn_base](https://github.com/rust-lang/rustfmt/blob/ee2bed96d60fd7e46b1fb868f6a8f27e3a8058d0/src/items.rs#L2326-L2423) #### V2 ```rust pub fn parse_conditional() -> impl Parser +...
### Trailing semicolon for return statements inside a match arm **Reference in codebase:** [matches::rewrite_match_body](https://github.com/rust-lang/rustfmt/blob/ee2bed96d60fd7e46b1fb868f6a8f27e3a8058d0/src/matches.rs#L428-L436) #### V2 match arm `0` Includes a trailing semicolon. ```rust fn foo() { match 0 {...
### Format the last expression-statement as expression **Reference in codebase**: [impl ](https://github.com/rust-lang/rustfmt/blob/ee2bed96d60fd7e46b1fb868f6a8f27e3a8058d0/src/stmt.rs#L76-L85) ### V2 ```rust fn main() { let toto = || { if true { 42 } else {...
TODO: Document https://github.com/rust-lang/rustfmt/pull/5867
TODO: Document #5902
### Consistent handling of macros from the `log` crate. **Reference in codebase**: [overflow::OverflowableItem::special_cases](https://github.com/rust-lang/rustfmt/blob/d86fc1bf640b53c884c25d46c99dd391a5b15744/src/overflow.rs#L198-L201) Added in PR #5989 ### V2 All of the macros are formatted consistently. ```rust fn main() {...
TODO: Document https://github.com/rust-lang/rustfmt/pull/6000
We haven't done a subtree sync since 2023-10-22 https://github.com/rust-lang/rust/pull/117066 Running rustfmt built from source :rustfmt 1.7.0-nightly (bf967319 2024-01-20) ```bash cargo run --bin rustfmt
Tracked the issue down to the `nightly-2023-12-28` release. ```bash rustfmt +nightly-2023-12-27
bisected the formatting changes back to https://github.com/rust-lang/rust/pull/119099