rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

Move style guide

Open joshtriplett opened this issue 3 years ago • 1 comments

RFC 3309 moved the style guide to rust-lang/rust. In addition, the link from RFC 2436 to the style guide does not seem to have ever worked, and the style guide has never been available anywhere in rendered form.

Update RFC 2436 minimally to point to the rendered style guide.

Rendered

joshtriplett avatar Sep 24 '22 18:09 joshtriplett

Currently draft, until https://github.com/rust-lang/rust/pull/102239 gets merged.

joshtriplett avatar Sep 24 '22 18:09 joshtriplett

I think we should definitely get rid of the specifics here as that's been an ongoing source of confusion. One of the things I heard when I first started contributing to rustfmt was that the rustfmt team of that time was entirely unaware that this rfc version of the style guide specifics existed here.

calebcartwright avatar Oct 07 '22 16:10 calebcartwright

I've a couple questions more related to the execution of moving the guide into r-l/rust that I'll ask here:

  • What's the plan for the repo where the guide is currently maintained? I feel like it should be functionally archived to avoid any confusion or bifurcation (though I don't have access to do this myself)
  • Any thoughts on how we could potentially lower the frequency of revisiting topics that were previously discussed at length and resolved (e.g. are there any steps we should take to capture/point to past discussions to hopefully reduce the odds of r-l/rust getting spammed with "switch default from spaces to tabs" types of issues?)
    • Perhaps something as simple as creating a small list of quick links to those past discussions to capture the frequently asked/requested items?
  • Should we run a final triage pass over open issues/PRs in the current repo before migrating to see if there's anything that can be closed out and pulled in as part of the move, or should we move first and then recreate as needed?

calebcartwright avatar Oct 07 '22 17:10 calebcartwright

@calebcartwright Regarding your first and third points, RFC 3309 mentions:

This RFC proposes to move the Rust style guide to the rust-lang/rust repository, rather than its current location in the RFCs repository. Style work may additionally take place in the fmt-rfcs repository (which this RFC proposes to revive). Larger style proposals may wish to start there rather than as PRs to the style guide. The style team may choose to change this process.

I think we should keep fmt-rfcs for now, and decide as a team if we want to continue using it or use some other process for larger pieces of style work.

joshtriplett avatar Oct 09 '22 11:10 joshtriplett

@calebcartwright wrote:

  • Any thoughts on how we could potentially lower the frequency of revisiting topics that were previously discussed at length and resolved (e.g. are there any steps we should take to capture/point to past discussions to hopefully reduce the odds of r-l/rust getting spammed with "switch default from spaces to tabs" types of issues?)

    • Perhaps something as simple as creating a small list of quick links to those past discussions to capture the frequently asked/requested items?

We've talked about having a similar FAQ for other frequently requested items, such as "make braces optional on if and other block constructs". I think we could add a few style items to that FAQ, and if the list of style items in that FAQ gets too long we could split out a style-specific FAQ and link to it.

joshtriplett avatar Oct 09 '22 11:10 joshtriplett

https://github.com/rust-lang/rust/pull/102239 has been merged, so this can now be merged as well.

joshtriplett avatar Oct 16 '22 19:10 joshtriplett