Skip to content

Commit a1301c3

Browse files
committed
Create "The Unstable Book"
part of rust-lang#39588
1 parent fc6f092 commit a1301c3

File tree

94 files changed

+198
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+198
-2
lines changed

src/bootstrap/step.rs

+9
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,15 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
577577
})
578578
.default(build.config.docs)
579579
.run(move |s| doc::rustbook(build, s.target, "reference"));
580+
rules.doc("doc-unstable-book", "src/doc/unstable-book")
581+
.dep(move |s| {
582+
s.name("tool-rustbook")
583+
.host(&build.config.build)
584+
.target(&build.config.build)
585+
.stage(0)
586+
})
587+
.default(build.config.docs)
588+
.run(move |s| doc::rustbook(build, s.target, "unstable-book"));
580589
rules.doc("doc-standalone", "src/doc")
581590
.dep(move |s| {
582591
s.name("rustc")

src/doc/unstable-book/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
book

src/doc/unstable-book/src/SUMMARY.md

+91

src/doc/unstable-book/src/abi-ptx.md

+1
+1
+1

src/doc/unstable-book/src/asm.md

+1
+1

src/doc/unstable-book/src/const-fn.md

+1
+1
+1
+1
+1
+1

src/doc/unstable-book/src/link-cfg.md

+1

src/doc/unstable-book/src/linkage.md

+1
+1

src/doc/unstable-book/src/main.md

+1
+1

src/doc/unstable-book/src/no-core.md

+1

src/doc/unstable-book/src/no-debug.md

+1

src/doc/unstable-book/src/plugin.md

+1
+1

src/doc/unstable-book/src/quote.md

+1
+1
+1

src/doc/unstable-book/src/simd-ffi.md

+1

src/doc/unstable-book/src/simd.md

+1
+1

src/doc/unstable-book/src/start.md

+1

src/libsyntax/feature_gate.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@ macro_rules! declare_features {
9191
}
9292
}
9393

94-
// If you change this list without updating src/doc/reference.md, @cmr will be sad
94+
// If you change this, please modify src/doc/unstable-book as well.
95+
//
9596
// Don't ever remove anything from this list; set them to 'Removed'.
97+
//
9698
// The version numbers here correspond to the version in which the current status
9799
// was set. This is most important for knowing when a particular feature became
98100
// stable (active).
101+
//
99102
// NB: The featureck.py script parses this information directly out of the source
100103
// so take care when modifying it.
101104

@@ -385,7 +388,9 @@ declare_features! (
385388
// Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.
386389
(accepted, field_init_shorthand, "1.17.0", Some(37340)),
387390
);
388-
// (changing above list without updating src/doc/reference.md makes @cmr sad)
391+
// If you change this, please modify src/doc/unstable-book as well. You must
392+
// move that documentation into the relevant place in the other docs, and
393+
// remove the chapter on the flag.
389394

390395
#[derive(PartialEq, Copy, Clone, Debug)]
391396
pub enum AttributeType {

0 commit comments

Comments
 (0)