Skip to content

Commit 6e9bdac

Browse files
authored
Rollup merge of #111119 - compiler-errors:style-nightly, r=joshtriplett
style-guide: Add chapter about formatting for nightly-only syntax cc `@rust-lang/style` nightly policy mentioned below is being proposed in rust-lang/style-team#180
2 parents d9c13cd + 5957f02 commit 6e9bdac

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/doc/style-guide/src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
- [Other style advice](advice.md)
1010
- [`Cargo.toml` conventions](cargo.md)
1111
- [Guiding principles and rationale](principles.md)
12+
- [Nightly-only syntax](nightly.md)

src/doc/style-guide/src/nightly.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
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.
2+
3+
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.
4+
5+
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 commit comments

Comments
 (0)