@@ -172,11 +172,11 @@ pub fn f() {}
172172
173173> Note: ` rustc ` currently recognizes the tools "clippy" and "rustfmt".
174174
175- ## Built-in attributes
175+ ## Built-in attributes index
176176
177177The following is an index of all built-in attributes.
178178
179- - Conditional Compilation
179+ - Conditional compilation
180180 - [ ` cfg ` ] — Controls conditional compilation.
181181 - [ ` cfg_attr ` ] — Conditionally includes attributes.
182182- Testing
@@ -185,7 +185,6 @@ The following is an index of all built-in attributes.
185185 - [ ` should_panic ` ] — Indicates a test should generate a panic.
186186- Derive
187187 - [ ` derive ` ] — Automatic trait implementations.
188- <!-- automatically_derived -->
189188- Macros
190189 - [ ` macro_export ` ] — Exports a ` macro_rules ` macro for cross-crate usage.
191190 - [ ` macro_use ` ] — Expands macro visibility, or imports macros from other
@@ -197,7 +196,7 @@ The following is an index of all built-in attributes.
197196 - [ ` allow ` ] , [ ` warn ` ] , [ ` deny ` ] , [ ` forbid ` ] — Alters the default lint level.
198197 - [ ` deprecated ` ] — Generates deprecation notices.
199198 - [ ` must_use ` ] — Generates a lint for unused values.
200- - ABI, Linking, Symbols , and FFI
199+ - ABI, linking, symbols , and FFI
201200 - [ ` link ` ] — Specifies a native library to link with an ` extern ` block.
202201 - [ ` link_name ` ] — Specifies the name of the symbol for functions or statics
203202 in an ` extern ` block.
@@ -213,16 +212,15 @@ The following is an index of all built-in attributes.
213212 - [ ` used ` ] - Forces the compiler to keep a static variable in the output
214213 object file.
215214 - [ ` crate_name ` ] — Specifies the crate name.
216- - Code Generation
215+ - Code generation
217216 - [ ` inline ` ] — Hint to inline code.
218217 - [ ` cold ` ] — Hint that a function is unlikely to be called.
219218 - [ ` no_builtins ` ] — Disables use of certain built-in functions.
220- <!-- target_feature -->
221- - Compiler Settings
219+ - Compiler setting attributes
220+ - ` feature ` — Used to enable unstable or experimental compiler features. See
221+ [ The Unstable Book] for features implemented in ` rustc ` .
222222 - [ ` recursion_limit ` ] — Sets the maximum recursion limit for certain
223223 compile-time operations.
224- <!-- feature -->
225- <!-- type_length_limit -->
226224- Documentation
227225 - ` doc ` — Specifies documentation. See [ The Rustdoc Book] for more
228226 information. [ Doc comments] are transformed into ` doc ` attributes.
@@ -244,31 +242,32 @@ The following is an index of all built-in attributes.
244242[ RAW_STRING_LITERAL ] : tokens.html#raw-string-literals
245243[ STRING_LITERAL ] : tokens.html#string-literals
246244[ The Rustdoc Book ] : ../rustdoc/the-doc-attribute.html
245+ [ The Unstable Book ] : ../unstable-book/index.html
247246[ _DelimTokenTree_ ] : macros.html
248247[ _LiteralExpression_ ] : expressions/literal-expr.html
249248[ _SimplePath_ ] : paths.html#simple-paths
250- [ `allow` ] : diagnostics.html#lint-check-attributes
249+ [ `allow` ] : attributes/ diagnostics.html#lint-check-attributes
251250[ `cfg_attr` ] : conditional-compilation.html#the-cfg_attr-attribute
252251[ `cfg` ] : conditional-compilation.html#the-cfg-attribute
253- [ `cold` ] : codegen.html#the-cold-attribute
252+ [ `cold` ] : attributes/ codegen.html#the-cold-attribute
254253[ `crate_name` ] : crates-and-source-files.html#the-crate_name-attribute
255254[ `crate_type` ] : linkage.html
256- [ `deny` ] : diagnostics.html#lint-check-attributes
257- [ `deprecated` ] : diagnostics.html#the-deprecated-attribute
258- [ `derive` ] : derive.html
255+ [ `deny` ] : attributes/ diagnostics.html#lint-check-attributes
256+ [ `deprecated` ] : attributes/ diagnostics.html#the-deprecated-attribute
257+ [ `derive` ] : attributes/ derive.html
259258[ `export_name` ] : abi.html#the-export_name-attribute
260- [ `forbid` ] : diagnostics.html#lint-check-attributes
259+ [ `forbid` ] : attributes/ diagnostics.html#lint-check-attributes
261260[ `global_allocator` ] : runtime.html#the-global_allocator-attribute
262- [ `ignore` ] : testing.html#the-ignore-attribute
263- [ `inline` ] : codegen.html#the-inline-attribute
261+ [ `ignore` ] : attributes/ testing.html#the-ignore-attribute
262+ [ `inline` ] : attributes/ codegen.html#the-inline-attribute
264263[ `link_name` ] : items/external-blocks.html#the-link_name-attribute
265264[ `link_section` ] : abi.html#the-link_section-attribute
266265[ `link` ] : items/external-blocks.html#the-link-attribute
267266[ `macro_export` ] : macros-by-example.html#path-based-scope
268267[ `macro_use` ] : macros-by-example.html#the-macro_use-attribute
269268[ `meta` macro fragment specifier ] : macros-by-example.html
270- [ `must_use` ] : diagnostics.html#the-must_use-attribute
271- [ `no_builtins` ] : codegen.html#the-no_builtins-attribute
269+ [ `must_use` ] : attributes/ diagnostics.html#the-must_use-attribute
270+ [ `no_builtins` ] : attributes/ codegen.html#the-no_builtins-attribute
272271[ `no_implicit_prelude` ] : items/modules.html#prelude-items
273272[ `no_link` ] : items/extern-crates.html#the-no_link-attribute
274273[ `no_main` ] : crates-and-source-files.html#the-no_main-attribute
@@ -279,16 +278,16 @@ The following is an index of all built-in attributes.
279278[ `proc_macro_attribute` ] : procedural-macros.html#attribute-macros
280279[ `proc_macro_derive` ] : procedural-macros.html#derive-macros
281280[ `proc_macro` ] : procedural-macros.html#function-like-procedural-macros
282- [ `recursion_limit` ] : compiler-attrs .html#the-recursion_limit-attribute
281+ [ `recursion_limit` ] : attributes/ compiler-settings .html#the-recursion_limit-attribute
283282[ `repr` ] : type-layout.html#representations
284- [ `should_panic` ] : testing.html#the-should_panic-attribute
285- [ `test` ] : testing.html#the-test-attribute
283+ [ `should_panic` ] : attributes/ testing.html#the-should_panic-attribute
284+ [ `test` ] : attributes/ testing.html#the-test-attribute
286285[ `used` ] : abi.html#the-used-attribute
287- [ `warn` ] : diagnostics.html#lint-check-attributes
286+ [ `warn` ] : attributes/ diagnostics.html#lint-check-attributes
288287[ `windows_subsystem` ] : runtime.html#the-windows_subsystem-attribute
289288[ attribute macros ] : procedural-macros.html#attribute-macros
290289[ block expressions ] : expressions/block-expr.html
291- [ built-in attributes ] : #built-in-attributes
290+ [ built-in attributes ] : #built-in-attributes-index
292291[ derive macro helper attributes ] : procedural-macros.html#derive-macro-helper-attributes
293292[ enum ] : items/enumerations.html
294293[ expression statement ] : statements.html#expression-statements
0 commit comments