Skip to content

Commit

Permalink
style-guide: Add chapter for nightly formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Goulet <michael@errs.io>
  • Loading branch information
joshtriplett and compiler-errors committed Jul 5, 2023
1 parent 5a6c618 commit 5957f02
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/doc/style-guide/src/nightly.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
The style guide does not prescribe formatting for nightly-only syntax. Refer to
the style team policy for nightly formatting procedure regarding breaking
formatter changes and feature stabilization.
This chapter documents style and formatting for nightly-only syntax. The rest of the style guide documents style for stable Rust syntax; nightly syntax only appears in this chapter. Each section here includes the name of the feature gate, so that searches (e.g. `git grep`) for a nightly feature in the Rust repository also turn up the style guide section.

Style and formatting for nightly-only syntax should be removed from this chapter and integrated into the appropriate sections of the style guide at the time of stabilization.

There is no guarantee of the stability of this chapter in contrast to the rest of the style guide. Refer to the style team policy for nightly formatting procedure regarding breaking changes to this chapter.

0 comments on commit 5957f02

Please sign in to comment.