@@ -172,11 +172,11 @@ pub fn f() {}
172
172
173
173
> Note: ` rustc ` currently recognizes the tools "clippy" and "rustfmt".
174
174
175
- ## Built-in attributes
175
+ ## Built-in attributes index
176
176
177
177
The following is an index of all built-in attributes.
178
178
179
- - Conditional Compilation
179
+ - Conditional compilation
180
180
- [ ` cfg ` ] — Controls conditional compilation.
181
181
- [ ` cfg_attr ` ] — Conditionally includes attributes.
182
182
- Testing
@@ -185,7 +185,6 @@ The following is an index of all built-in attributes.
185
185
- [ ` should_panic ` ] — Indicates a test should generate a panic.
186
186
- Derive
187
187
- [ ` derive ` ] — Automatic trait implementations.
188
- <!-- automatically_derived -->
189
188
- Macros
190
189
- [ ` macro_export ` ] — Exports a ` macro_rules ` macro for cross-crate usage.
191
190
- [ ` macro_use ` ] — Expands macro visibility, or imports macros from other
@@ -197,7 +196,7 @@ The following is an index of all built-in attributes.
197
196
- [ ` allow ` ] , [ ` warn ` ] , [ ` deny ` ] , [ ` forbid ` ] — Alters the default lint level.
198
197
- [ ` deprecated ` ] — Generates deprecation notices.
199
198
- [ ` must_use ` ] — Generates a lint for unused values.
200
- - ABI, Linking, Symbols , and FFI
199
+ - ABI, linking, symbols , and FFI
201
200
- [ ` link ` ] — Specifies a native library to link with an ` extern ` block.
202
201
- [ ` link_name ` ] — Specifies the name of the symbol for functions or statics
203
202
in an ` extern ` block.
@@ -213,16 +212,15 @@ The following is an index of all built-in attributes.
213
212
- [ ` used ` ] - Forces the compiler to keep a static variable in the output
214
213
object file.
215
214
- [ ` crate_name ` ] — Specifies the crate name.
216
- - Code Generation
215
+ - Code generation
217
216
- [ ` inline ` ] — Hint to inline code.
218
217
- [ ` cold ` ] — Hint that a function is unlikely to be called.
219
218
- [ ` 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 ` .
222
222
- [ ` recursion_limit ` ] — Sets the maximum recursion limit for certain
223
223
compile-time operations.
224
- <!-- feature -->
225
- <!-- type_length_limit -->
226
224
- Documentation
227
225
- ` doc ` — Specifies documentation. See [ The Rustdoc Book] for more
228
226
information. [ Doc comments] are transformed into ` doc ` attributes.
@@ -244,31 +242,32 @@ The following is an index of all built-in attributes.
244
242
[ RAW_STRING_LITERAL ] : tokens.html#raw-string-literals
245
243
[ STRING_LITERAL ] : tokens.html#string-literals
246
244
[ The Rustdoc Book ] : ../rustdoc/the-doc-attribute.html
245
+ [ The Unstable Book ] : ../unstable-book/index.html
247
246
[ _DelimTokenTree_ ] : macros.html
248
247
[ _LiteralExpression_ ] : expressions/literal-expr.html
249
248
[ _SimplePath_ ] : paths.html#simple-paths
250
- [ `allow` ] : diagnostics.html#lint-check-attributes
249
+ [ `allow` ] : attributes/ diagnostics.html#lint-check-attributes
251
250
[ `cfg_attr` ] : conditional-compilation.html#the-cfg_attr-attribute
252
251
[ `cfg` ] : conditional-compilation.html#the-cfg-attribute
253
- [ `cold` ] : codegen.html#the-cold-attribute
252
+ [ `cold` ] : attributes/ codegen.html#the-cold-attribute
254
253
[ `crate_name` ] : crates-and-source-files.html#the-crate_name-attribute
255
254
[ `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
259
258
[ `export_name` ] : abi.html#the-export_name-attribute
260
- [ `forbid` ] : diagnostics.html#lint-check-attributes
259
+ [ `forbid` ] : attributes/ diagnostics.html#lint-check-attributes
261
260
[ `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
264
263
[ `link_name` ] : items/external-blocks.html#the-link_name-attribute
265
264
[ `link_section` ] : abi.html#the-link_section-attribute
266
265
[ `link` ] : items/external-blocks.html#the-link-attribute
267
266
[ `macro_export` ] : macros-by-example.html#path-based-scope
268
267
[ `macro_use` ] : macros-by-example.html#the-macro_use-attribute
269
268
[ `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
272
271
[ `no_implicit_prelude` ] : items/modules.html#prelude-items
273
272
[ `no_link` ] : items/extern-crates.html#the-no_link-attribute
274
273
[ `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.
279
278
[ `proc_macro_attribute` ] : procedural-macros.html#attribute-macros
280
279
[ `proc_macro_derive` ] : procedural-macros.html#derive-macros
281
280
[ `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
283
282
[ `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
286
285
[ `used` ] : abi.html#the-used-attribute
287
- [ `warn` ] : diagnostics.html#lint-check-attributes
286
+ [ `warn` ] : attributes/ diagnostics.html#lint-check-attributes
288
287
[ `windows_subsystem` ] : runtime.html#the-windows_subsystem-attribute
289
288
[ attribute macros ] : procedural-macros.html#attribute-macros
290
289
[ block expressions ] : expressions/block-expr.html
291
- [ built-in attributes ] : #built-in-attributes
290
+ [ built-in attributes ] : #built-in-attributes-index
292
291
[ derive macro helper attributes ] : procedural-macros.html#derive-macro-helper-attributes
293
292
[ enum ] : items/enumerations.html
294
293
[ expression statement ] : statements.html#expression-statements
0 commit comments