@@ -240,24 +240,20 @@ r[attributes.builtin]
240240
241241The following is an index of all built-in attributes.
242242
243- r[ attributes.builtin.cfg]
244243- Conditional compilation
245244 - [ ` cfg ` ] --- Controls conditional compilation.
246245 - [ ` cfg_attr ` ] --- Conditionally includes attributes.
247246
248- r[ attributes.builtin.testing]
249247- Testing
250248 - [ ` test ` ] --- Marks a function as a test.
251249 - [ ` ignore ` ] --- Disables a test function.
252250 - [ ` should_panic ` ] --- Indicates a test should generate a panic.
253251
254- r[ attributes.builtin.derive]
255252- Derive
256253 - [ ` derive ` ] --- Automatic trait implementations.
257254 - [ ` automatically_derived ` ] --- Marker for implementations created by
258255 ` derive ` .
259256
260- r[ attributes.builtin.macros]
261257- Macros
262258 - [ ` macro_export ` ] --- Exports a ` macro_rules ` macro for cross-crate usage.
263259 - [ ` macro_use ` ] --- Expands macro visibility, or imports macros from other
@@ -266,15 +262,13 @@ r[attributes.builtin.macros]
266262 - [ ` proc_macro_derive ` ] --- Defines a derive macro.
267263 - [ ` proc_macro_attribute ` ] --- Defines an attribute macro.
268264
269- r[ attributes.builtin.diagnostic]
270265- Diagnostics
271266 - [ ` allow ` ] , [ ` expect ` ] , [ ` warn ` ] , [ ` deny ` ] , [ ` forbid ` ] --- Alters the default lint level.
272267 - [ ` deprecated ` ] --- Generates deprecation notices.
273268 - [ ` must_use ` ] --- Generates a lint for unused values.
274269 - [ ` diagnostic::on_unimplemented ` ] --- Hints the compiler to emit a certain error
275270 message if a trait is not implemented.
276271
277- r[ attributes.builtin.linkage]
278272- ABI, linking, symbols, and FFI
279273 - [ ` link ` ] --- Specifies a native library to link with an ` extern ` block.
280274 - [ ` link_name ` ] --- Specifies the name of the symbol for functions or statics
@@ -294,7 +288,6 @@ r[attributes.builtin.linkage]
294288 object file.
295289 - [ ` crate_name ` ] --- Specifies the crate name.
296290
297- r[ attributes.builtin.codegen]
298291- Code generation
299292 - [ ` inline ` ] --- Hint to inline code.
300293 - [ ` cold ` ] --- Hint that a function is unlikely to be called.
@@ -303,43 +296,35 @@ r[attributes.builtin.codegen]
303296 - [ ` track_caller ` ] - Pass the parent call location to ` std::panic::Location::caller() ` .
304297 - [ ` instruction_set ` ] - Specify the instruction set used to generate a functions code
305298
306- r[ attributes.builtin.doc]
307299- Documentation
308300 - ` doc ` --- Specifies documentation. See [ The Rustdoc Book] for more
309301 information. [ Doc comments] are transformed into ` doc ` attributes.
310302
311- r[ attributes.builtin.prelude]
312303- Preludes
313304 - [ ` no_std ` ] --- Removes std from the prelude.
314305 - [ ` no_implicit_prelude ` ] --- Disables prelude lookups within a module.
315306
316- r[ attributes.builtin.module]
317307- Modules
318308 - [ ` path ` ] --- Specifies the filename for a module.
319309
320- r[ attributes.builtin.limits]
321310- Limits
322311 - [ ` recursion_limit ` ] --- Sets the maximum recursion limit for certain
323312 compile-time operations.
324313 - [ ` type_length_limit ` ] --- Sets the maximum size of a polymorphic type.
325314
326- r[ attributes.builtin.rt]
327315- Runtime
328316 - [ ` panic_handler ` ] --- Sets the function to handle panics.
329317 - [ ` global_allocator ` ] --- Sets the global memory allocator.
330318 - [ ` windows_subsystem ` ] --- Specifies the windows subsystem to link with.
331319
332- r[ attributes.builtin.unstable]
333320- Features
334321 - ` feature ` --- Used to enable unstable or experimental compiler features. See
335322 [ The Unstable Book] for features implemented in ` rustc ` .
336323
337- r[ attributes.builtin.typesystem]
338324- Type System
339325 - [ ` non_exhaustive ` ] --- Indicate that a type will have more fields/variants
340326 added in future.
341327
342- r[ attributes.builtin.debugging]
343328- Debugger
344329 - [ ` debugger_visualizer ` ] --- Embeds a file that specifies debugger output for a type.
345330 - [ ` collapse_debuginfo ` ] --- Controls how macro invocations are encoded in debuginfo.
0 commit comments