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 improve impl generics indentation #124758

Open calebcartwright opened 1 week ago

calebcartwright commented 1 week ago

This is a tracking issue for optimizing the indentation used for generics on impl blocks in rustfmt. 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-1305649570 and https://github.com/rust-lang/rustfmt/issues/5577#issuecomment-1305717684