Rust Style Team by joshtriplett · Pull Request #3309 · rust-lang/rfcs (original) (raw)
This RFC charters the Rust Style Team, responsible for evolving the Rust style over time. This includes styling for new Rust constructs, as well as the evolution of the existing style over the course of Rust editions (without breaking backwards compatibility).
RFC 1607 proposed and motivated a process for determining code formatting guidelines and producing a style guide, via a temporary style team. That style guide was published as RFC 2436, and the style team wound up its operation and no longer exists. However, Rust has multiple ongoing needs for new determinations regarding Rust style, such as determining the style of new Rust constructs, and evolving the Rust style over time. Thus, this RFC re-charters the Rust Style Team as a non-temporary subteam.
The renewed need for the Rust style team began to arise in discussions of language constructs such as let
-chaining (RFC 2497) and let
-else
(RFC 3137). New constructs like these, by default, get ignored and not formatted by rustfmt, and subsequently need formatting added. The rustfmt team has expressed a preference to not make style determinations itself; the rustfmt team would prefer to implement style determinations made by another team.
This RFC proposes re-chartering the style team, as originally specified in RFC 1607, to determine the Rust style. This includes:
- Making determinations about styling for new Rust constructs
- Evolving the existing Rust style
- Defining mechanisms to evolve the Rust style while taking backwards compatibility into account, such as via Rust editions or similar mechanisms
The initial members of the style team shall be:
- Lead: Caleb Cartwright (@calebcartwright)
- Jane Losare-Lusby (@yaahc)
- Josh Triplett (@joshtriplett)
- Michael Goulet (@compiler-errors)