parent
fc6f092c21
commit
a1301c3495
|
@ -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")
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
book
|
|
@ -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)
|
|
@ -0,0 +1 @@
|
|||
# abi_msp430_interrupt
|
|
@ -0,0 +1 @@
|
|||
# abi_ptx
|
|
@ -0,0 +1 @@
|
|||
# abi_sysv64
|
|
@ -0,0 +1 @@
|
|||
# abi_unadjusted
|
|
@ -0,0 +1 @@
|
|||
# abi_vectorcall
|
|
@ -0,0 +1 @@
|
|||
# advanced_slice_patterns
|
|
@ -0,0 +1 @@
|
|||
# allocator
|
|
@ -0,0 +1 @@
|
|||
# allow_internal_unstable
|
|
@ -0,0 +1 @@
|
|||
# asm
|
|
@ -0,0 +1 @@
|
|||
# associated_consts
|
|
@ -0,0 +1 @@
|
|||
# associated_type_defaults
|
|
@ -0,0 +1 @@
|
|||
# attr_literals
|
|
@ -0,0 +1 @@
|
|||
# box_patterns
|
|
@ -0,0 +1 @@
|
|||
# box_syntax
|
|
@ -0,0 +1 @@
|
|||
# cfg_target_feature
|
|
@ -0,0 +1 @@
|
|||
# cfg_target_has_atomic
|
|
@ -0,0 +1 @@
|
|||
# cfg_target_thread_local
|
|
@ -0,0 +1 @@
|
|||
# cfg_target_vendor
|
|
@ -0,0 +1 @@
|
|||
# compiler_builtins
|
|
@ -0,0 +1 @@
|
|||
# concat_idents
|
|
@ -0,0 +1 @@
|
|||
# conservative_impl_trait
|
|
@ -0,0 +1 @@
|
|||
# const_fn
|
|
@ -0,0 +1 @@
|
|||
# const_indexing
|
|
@ -0,0 +1 @@
|
|||
# custom_attribute
|
|
@ -0,0 +1 @@
|
|||
# custom_derive
|
|
@ -0,0 +1 @@
|
|||
# default_type_parameter_fallback
|
|
@ -0,0 +1 @@
|
|||
# drop_types_in_const
|
|
@ -0,0 +1 @@
|
|||
# dropck_eyepatch
|
|
@ -0,0 +1 @@
|
|||
# dropck_parametricity
|
|
@ -0,0 +1 @@
|
|||
# exclusive_range_pattern
|
|
@ -0,0 +1 @@
|
|||
# field_init_shorthand
|
|
@ -0,0 +1 @@
|
|||
# fundamental
|
|
@ -0,0 +1 @@
|
|||
# generic_param_attrs
|
|
@ -0,0 +1 @@
|
|||
# i128_type
|
|
@ -0,0 +1 @@
|
|||
# inclusive_range_syntax
|
|
@ -0,0 +1 @@
|
|||
# intrinsics
|
|
@ -0,0 +1 @@
|
|||
# lang_items
|
|
@ -0,0 +1 @@
|
|||
# link_args
|
|
@ -0,0 +1 @@
|
|||
# link_cfg
|
|
@ -0,0 +1 @@
|
|||
# link_llvm_intrinsics
|
|
@ -0,0 +1 @@
|
|||
# linkage
|
|
@ -0,0 +1 @@
|
|||
# log_syntax
|
|
@ -0,0 +1 @@
|
|||
# loop_break_value
|
|
@ -0,0 +1 @@
|
|||
# macro_reexport
|
|
@ -0,0 +1 @@
|
|||
# main
|
|
@ -0,0 +1 @@
|
|||
# naked_functions
|
|
@ -0,0 +1 @@
|
|||
# needs_allocator
|
|
@ -0,0 +1 @@
|
|||
# needs_panic_runtime
|
|
@ -0,0 +1 @@
|
|||
# never_type
|
|
@ -0,0 +1 @@
|
|||
# no_core
|
|
@ -0,0 +1 @@
|
|||
# no_debug
|
|
@ -0,0 +1 @@
|
|||
# non_ascii_idents
|
|
@ -0,0 +1 @@
|
|||
# omit_gdb_pretty_printer_section
|
|
@ -0,0 +1 @@
|
|||
# on_unimplemented
|
|
@ -0,0 +1 @@
|
|||
# optin_builtin_traits
|
|
@ -0,0 +1 @@
|
|||
# panic_runtime
|
|
@ -0,0 +1 @@
|
|||
# placement_in_syntax
|
|
@ -0,0 +1 @@
|
|||
# platform_intrinsics
|
|
@ -0,0 +1 @@
|
|||
# plugin_registrar
|
|
@ -0,0 +1 @@
|
|||
# plugin
|
|
@ -0,0 +1 @@
|
|||
# prelude_import
|
|
@ -0,0 +1 @@
|
|||
# proc_macro
|
|
@ -0,0 +1 @@
|
|||
# pub_restricted
|
|
@ -0,0 +1 @@
|
|||
# quote
|
|
@ -0,0 +1 @@
|
|||
# relaxed_adts
|
|
@ -0,0 +1 @@
|
|||
# repr_simd
|
|
@ -0,0 +1 @@
|
|||
# rustc_attrs
|
|
@ -0,0 +1 @@
|
|||
# rustc_diagnostic_macros
|
|
@ -0,0 +1 @@
|
|||
# sanitizer_runtime
|
|
@ -0,0 +1 @@
|
|||
# simd_ffi
|
|
@ -0,0 +1 @@
|
|||
# simd
|
|
@ -0,0 +1 @@
|
|||
# slice_patterns
|
|
@ -0,0 +1 @@
|
|||
# specialization
|
|
@ -0,0 +1 @@
|
|||
# staged_api
|
|
@ -0,0 +1 @@
|
|||
# start
|
|
@ -0,0 +1 @@
|
|||
# static_nobundle
|
|
@ -0,0 +1 @@
|
|||
# static_recursion
|
|
@ -0,0 +1 @@
|
|||
# stmt_expr_attributes
|
|
@ -0,0 +1 @@
|
|||
# struct_field_attributes
|
|
@ -0,0 +1 @@
|
|||
# structural_match
|
|
@ -0,0 +1 @@
|
|||
# target_feature
|
|
@ -0,0 +1 @@
|
|||
# The Unstable Book
|
|
@ -0,0 +1 @@
|
|||
# thread_local
|
|
@ -0,0 +1 @@
|
|||
# trace_macros
|
|
@ -0,0 +1 @@
|
|||
# type_ascription
|
|
@ -0,0 +1 @@
|
|||
# unboxed_closures
|
|
@ -0,0 +1 @@
|
|||
# untagged_unions
|
|
@ -0,0 +1 @@
|
|||
# unwind_attributes
|
|
@ -0,0 +1 @@
|
|||
# use_extern_macros
|
|
@ -0,0 +1 @@
|
|||
# windows_subsystem
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue