Create "The Unstable Book"

part of #39588
This commit is contained in:
Steve Klabnik 2017-02-15 17:43:03 -05:00
parent fc6f092c21
commit a1301c3495
94 changed files with 198 additions and 2 deletions

View File

@ -577,6 +577,15 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
})
.default(build.config.docs)
.run(move |s| doc::rustbook(build, s.target, "reference"));
rules.doc("doc-unstable-book", "src/doc/unstable-book")
.dep(move |s| {
s.name("tool-rustbook")
.host(&build.config.build)
.target(&build.config.build)
.stage(0)
})
.default(build.config.docs)
.run(move |s| doc::rustbook(build, s.target, "unstable-book"));
rules.doc("doc-standalone", "src/doc")
.dep(move |s| {
s.name("rustc")

1
src/doc/unstable-book/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
book

View File

@ -0,0 +1,91 @@
[The Unstable Book](the-unstable-book.md)
- [asm](asm.md)
- [concat_idents](concat-idents.md)
- [link_args](link-args.md)
- [log_syntax](log-syntax.md)
- [non_ascii_idents](non_ascii-idents.md)
- [plugin_registrar](plugin-registrar.md)
- [thread_local](thread-local.md)
- [trace_macros](trace-macros.md)
- [intrinsics](intrinsics.md)
- [lang_items](lang-items.md)
- [link_llvm_intrinsics](link-llvm-intrinsics.md)
- [linkage](linkage.md)
- [quote](quote.md)
- [simd](simd.md)
- [rustc_diagnostic_macros](rustc-diagnostic-macros.md)
- [advanced_slice_patterns](advanced-slice-patterns.md)
- [box_syntax](box-syntax.md)
- [placement_in_syntax](placement-in-syntax.md)
- [unboxed_closures](unboxed-closures.md)
- [allocator](allocator.md)
- [fundamental](fundamental.md)
- [main](main.md)
- [needs_allocator](needs-allocator.md)
- [on_unimplemented](on-unimplemented.md)
- [plugin](plugin.md)
- [simd_ffi](simd-ffi.md)
- [start](start.md)
- [structural_match](structural-match.md)
- [panic_runtime](panic-runtime.md)
- [needs_panic_runtime](needs-panic-runtime.md)
- [optin_builtin_traits](optin-builtin-traits.md)
- [macro_reexport](macro-reexport.md)
- [staged_api](staged-api.md)
- [no_core](no-core.md)
- [box_patterns](box-patterns.md)
- [dropck_parametricity](dropck-parametricity.md)
- [dropck_eyepatch](dropck-eyepatch.md)
- [custom_attribute](custom-attribute.md)
- [custom_derive](custom-derive.md)
- [rustc_attrs](rustc-attrs.md)
- [allow_internal_unstable](allow-internal-unstable.md)
- [slice_patterns](slice-patterns.md)
- [associated_consts](associated-consts.md)
- [const_fn](const-fn.md)
- [const_indexing](const-indexing.md)
- [prelude_import](prelude-import.md)
- [static_recursion](static-recursion.md)
- [default_type_parameter_fallback](default-type-parameter-fallback.md)
- [associated_type_defaults](associated-type-defaults.md)
- [repr_simd](repr-simd.md)
- [cfg_target_feature](cfg-target-feature.md)
- [platform_intrinsics](platform-intrinsics.md)
- [unwind_attributes](unwind-attributes.md)
- [naked_functions](naked-functions.md)
- [no_debug](no-debug.md)
- [omit_gdb_pretty_printer_section](omit-gdb-pretty-printer-section.md)
- [cfg_target_vendor](cfg-target-vendor.md)
- [stmt_expr_attributes](stmt-expr-attributes.md)
- [type_ascription](type-ascription.md)
- [cfg_target_thread_local](cfg-target-thread-local.md)
- [abi_vectorcall](abi-vectorcall.md)
- [inclusive_range_syntax](inclusive-range-syntax.md)
- [exclusive_range_pattern](exclusive-range-pattern.md)
- [specialization](specialization.md)
- [pub_restricted](pub-restricted.md)
- [drop_types_in_const](drop-types-in-const.md)
- [cfg_target_has_atomic](cfg-target-has-atomic.md)
- [conservative_impl_trait](conservative-impl-trait.md)
- [relaxed_adts](relaxed-adts.md)
- [never_type](never-type.md)
- [attr_literals](attr-literals.md)
- [abi_sysv64](abi-sysv64.md)
- [untagged_unions](untagged-unions.md)
- [compiler_builtins](compiler-builtins.md)
- [generic_param_attrs](generic-param-attrs.md)
- [field_init_shorthand](field-init-shorthand.md)
- [windows_subsystem](windows-subsystem.md)
- [link_cfg](link-cfg.md)
- [use_extern_macros](use-extern-macros.md)
- [loop_break_value](loop-break-value.md)
- [target_feature](target-feature.md)
- [abi_ptx](abi-ptx.md)
- [i128_type](i128-type.md)
- [abi_unadjusted](abi-unadjusted.md)
- [proc_macro](proc-macro.md)
- [struct_field_attributes](struct-field-attributes.md)
- [static_nobundle](static-nobundle.md)
- [abi_msp430_interrupt](abi-msp430-interrupt.md)
- [sanitizer_runtime](sanitizer-runtime.md)

View File

@ -0,0 +1 @@
# abi_msp430_interrupt

View File

@ -0,0 +1 @@
# abi_ptx

View File

@ -0,0 +1 @@
# abi_sysv64

View File

@ -0,0 +1 @@
# abi_unadjusted

View File

@ -0,0 +1 @@
# abi_vectorcall

View File

@ -0,0 +1 @@
# advanced_slice_patterns

View File

@ -0,0 +1 @@
# allocator

View File

@ -0,0 +1 @@
# allow_internal_unstable

View File

@ -0,0 +1 @@
# asm

View File

@ -0,0 +1 @@
# associated_consts

View File

@ -0,0 +1 @@
# associated_type_defaults

View File

@ -0,0 +1 @@
# attr_literals

View File

@ -0,0 +1 @@
# box_patterns

View File

@ -0,0 +1 @@
# box_syntax

View File

@ -0,0 +1 @@
# cfg_target_feature

View File

@ -0,0 +1 @@
# cfg_target_has_atomic

View File

@ -0,0 +1 @@
# cfg_target_thread_local

View File

@ -0,0 +1 @@
# cfg_target_vendor

View File

@ -0,0 +1 @@
# compiler_builtins

View File

@ -0,0 +1 @@
# concat_idents

View File

@ -0,0 +1 @@
# conservative_impl_trait

View File

@ -0,0 +1 @@
# const_fn

View File

@ -0,0 +1 @@
# const_indexing

View File

@ -0,0 +1 @@
# custom_attribute

View File

@ -0,0 +1 @@
# custom_derive

View File

@ -0,0 +1 @@
# default_type_parameter_fallback

View File

@ -0,0 +1 @@
# drop_types_in_const

View File

@ -0,0 +1 @@
# dropck_eyepatch

View File

@ -0,0 +1 @@
# dropck_parametricity

View File

@ -0,0 +1 @@
# exclusive_range_pattern

View File

@ -0,0 +1 @@
# field_init_shorthand

View File

@ -0,0 +1 @@
# fundamental

View File

@ -0,0 +1 @@
# generic_param_attrs

View File

@ -0,0 +1 @@
# i128_type

View File

@ -0,0 +1 @@
# inclusive_range_syntax

View File

@ -0,0 +1 @@
# intrinsics

View File

@ -0,0 +1 @@
# lang_items

View File

@ -0,0 +1 @@
# link_args

View File

@ -0,0 +1 @@
# link_cfg

View File

@ -0,0 +1 @@
# link_llvm_intrinsics

View File

@ -0,0 +1 @@
# linkage

View File

@ -0,0 +1 @@
# log_syntax

View File

@ -0,0 +1 @@
# loop_break_value

View File

@ -0,0 +1 @@
# macro_reexport

View File

@ -0,0 +1 @@
# main

View File

@ -0,0 +1 @@
# naked_functions

View File

@ -0,0 +1 @@
# needs_allocator

View File

@ -0,0 +1 @@
# needs_panic_runtime

View File

@ -0,0 +1 @@
# never_type

View File

@ -0,0 +1 @@
# no_core

View File

@ -0,0 +1 @@
# no_debug

View File

@ -0,0 +1 @@
# non_ascii_idents

View File

@ -0,0 +1 @@
# omit_gdb_pretty_printer_section

View File

@ -0,0 +1 @@
# on_unimplemented

View File

@ -0,0 +1 @@
# optin_builtin_traits

View File

@ -0,0 +1 @@
# panic_runtime

View File

@ -0,0 +1 @@
# placement_in_syntax

View File

@ -0,0 +1 @@
# platform_intrinsics

View File

@ -0,0 +1 @@
# plugin_registrar

View File

@ -0,0 +1 @@
# plugin

View File

@ -0,0 +1 @@
# prelude_import

View File

@ -0,0 +1 @@
# proc_macro

View File

@ -0,0 +1 @@
# pub_restricted

View File

@ -0,0 +1 @@
# quote

View File

@ -0,0 +1 @@
# relaxed_adts

View File

@ -0,0 +1 @@
# repr_simd

View File

@ -0,0 +1 @@
# rustc_attrs

View File

@ -0,0 +1 @@
# rustc_diagnostic_macros

View File

@ -0,0 +1 @@
# sanitizer_runtime

View File

@ -0,0 +1 @@
# simd_ffi

View File

@ -0,0 +1 @@
# simd

View File

@ -0,0 +1 @@
# slice_patterns

View File

@ -0,0 +1 @@
# specialization

View File

@ -0,0 +1 @@
# staged_api

View File

@ -0,0 +1 @@
# start

View File

@ -0,0 +1 @@
# static_nobundle

View File

@ -0,0 +1 @@
# static_recursion

View File

@ -0,0 +1 @@
# stmt_expr_attributes

View File

@ -0,0 +1 @@
# struct_field_attributes

View File

@ -0,0 +1 @@
# structural_match

View File

@ -0,0 +1 @@
# target_feature

View File

@ -0,0 +1 @@
# The Unstable Book

View File

@ -0,0 +1 @@
# thread_local

View File

@ -0,0 +1 @@
# trace_macros

View File

@ -0,0 +1 @@
# type_ascription

View File

@ -0,0 +1 @@
# unboxed_closures

View File

@ -0,0 +1 @@
# untagged_unions

View File

@ -0,0 +1 @@
# unwind_attributes

View File

@ -0,0 +1 @@
# use_extern_macros

View File

@ -0,0 +1 @@
# windows_subsystem

View File

@ -91,11 +91,14 @@ macro_rules! declare_features {
}
}
// If you change this list without updating src/doc/reference.md, @cmr will be sad
// If you change this, please modify src/doc/unstable-book as well.
//
// Don't ever remove anything from this list; set them to 'Removed'.
//
// The version numbers here correspond to the version in which the current status
// was set. This is most important for knowing when a particular feature became
// stable (active).
//
// NB: The featureck.py script parses this information directly out of the source
// so take care when modifying it.
@ -385,7 +388,9 @@ declare_features! (
// Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.
(accepted, field_init_shorthand, "1.17.0", Some(37340)),
);
// (changing above list without updating src/doc/reference.md makes @cmr sad)
// If you change this, please modify src/doc/unstable-book as well. You must
// move that documentation into the relevant place in the other docs, and
// remove the chapter on the flag.
#[derive(PartialEq, Copy, Clone, Debug)]
pub enum AttributeType {