rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
93.58k stars 12.05k forks source link

Tracking Issue for Rust 2024: rustfmt closure body braces #124767

Open calebcartwright opened 1 week ago

calebcartwright commented 1 week ago

This is a tracking issue for correcting an issue in rustfmt around the usage of braces for closure bodies containing multi-line control flow expressions. This is needed to support the Style Edition 2024 which is expected to be released with Rust 2024.

About tracking issues

Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Steps

Unresolved Questions

None.

Implementation history

cc @rust-lang/rustfmt @rust-lang/style

Intended to cover https://github.com/rust-lang/rustfmt/issues/5577#issuecomment-1321330401