Closed
Description
Using this as our own formatting tracking issue given that the RFC for let-else statements has been merged. This issue will be used to track the overall implementation within rustfmt whereas discussion on the default style should occur in the Rust Style Guide repo that defines the formatting spec rustfmt applies (link to PR/issue in style guide to-be-added)
Broadly this work will entail:
- Default formatting/style rules codified in the Style Guide - https://github.com/rust-lang/rust/blob/master/src/doc/style-guide/src/statements.md#else-blocks-let-else-statements
- Barebones syntax handling (emit original span contents, this will be handled by the RFC implementer in rustc)
- Update rustfmt to apply Style Guide rules once finalized (Implement
let-else
formatting #5690) - Figure out handling and impact of nested comments (Implement
let-else
formatting #5690) - Review/apply any relevant existing config options, consider any potential new options (work is done, will shortly follow merge of Implement
let-else
formatting #5690 - "short" config option for let-else statements? #5684)
Edit - Updated to outline the high level steps and differentiate between style rules and rustfmt implementation
Metadata
Metadata
Assignees
Labels
No labels