@@ -114,7 +114,7 @@ names have meaning.
114
114
> sections for each attribute. It is not the full list of crate-root attributes.
115
115
116
116
- ` crate_name ` - specify the crate's crate name.
117
- - ` crate_type ` - see [ linkage] ( linkage.html ) .
117
+ - ` crate_type ` - see [ linkage] ( linkage.md ) .
118
118
- ` no_builtins ` - disable optimizing certain code patterns to invocations of
119
119
library functions that are assumed to exist
120
120
- ` no_main ` - disable emitting the ` main ` symbol. Useful when some other
@@ -145,7 +145,7 @@ On an `extern` block, the following attributes are interpreted:
145
145
- ` link ` - indicate that a native library should be linked to for the
146
146
declarations in this block to be linked correctly. ` link ` supports an optional
147
147
` kind ` key with three possible values: ` dylib ` , ` static ` , and ` framework ` . See
148
- [ external blocks] ( items/external-blocks.html ) for more about external blocks.
148
+ [ external blocks] ( items/external-blocks.md ) for more about external blocks.
149
149
Two examples: ` #[link(name = "readline")] ` and
150
150
` #[link(name = "CoreFoundation", kind = "framework")] ` .
151
151
- ` linked_from ` - indicates what native library this block of FFI items is
@@ -162,7 +162,7 @@ interpreted:
162
162
- ` linkage ` - on a static, this specifies the [ linkage
163
163
type] ( http://llvm.org/docs/LangRef.html#linkage-types ) .
164
164
165
- See [ type layout] ( type-layout.html ) for documentation on the ` repr ` attribute
165
+ See [ type layout] ( type-layout.md ) for documentation on the ` repr ` attribute
166
166
which can be used to control type layout.
167
167
168
168
## Macro-related attributes
@@ -210,7 +210,7 @@ fields, `since` and `note`.
210
210
- ` note ` is a free text field, allowing you to provide an explanation about
211
211
the deprecation and preferred alternatives.
212
212
213
- Only [ public items] ( visibility-and-privacy.html ) can be given the
213
+ Only [ public items] ( visibility-and-privacy.md ) can be given the
214
214
` #[deprecated] ` attribute. ` #[deprecated] ` on a module is inherited by all
215
215
child items of that module.
216
216
@@ -552,45 +552,45 @@ impl<T: PartialEq> PartialEq for Foo<T> {
552
552
553
553
You can implement ` derive ` for your own traits through [ procedural macros] .
554
554
555
- [ _LiteralExpression_ ] : expressions/literal-expr.html
556
- [ _SimplePath_ ] : paths.html #simple-paths
557
- [ `no_implicit_prelude` ] : items/modules.html #prelude-items
558
- [ `no_std` ] : crates-and-source-files.html #preludes-and-no_std
559
- [ Doc comments ] : comments.html #doc-comments
555
+ [ _LiteralExpression_ ] : expressions/literal-expr.md
556
+ [ _SimplePath_ ] : paths.md #simple-paths
557
+ [ `no_implicit_prelude` ] : items/modules.md #prelude-items
558
+ [ `no_std` ] : crates-and-source-files.md #preludes-and-no_std
559
+ [ Doc comments ] : comments.md #doc-comments
560
560
[ The Rustdoc Book ] : ../rustdoc/the-doc-attribute.html
561
- [ module ] : items/modules.html
562
- [ prelude ] : crates-and-source-files.html #preludes-and-no_std
563
- [ procedural macros ] : procedural-macros.html
564
- [ struct ] : items/structs.html
565
- [ enum ] : items/enumerations.html
566
- [ union ] : items/unions.html
567
- [ functions ] : items/functions.html
568
- [ expression ] : expressions.html
569
- [ expression statement ] : statements.html #expression-statements
570
- [ call expression ] : expressions/call-expr.html
571
- [ block expression ] : expressions/block-expr.html
572
- [ block expressions ] : expressions/block-expr.html
573
- [ `Drop` ] : special-types-and-traits.html #drop
574
- [ let statement ] : statements.html #let-statements
561
+ [ module ] : items/modules.md
562
+ [ prelude ] : crates-and-source-files.md #preludes-and-no_std
563
+ [ procedural macros ] : procedural-macros.md
564
+ [ struct ] : items/structs.md
565
+ [ enum ] : items/enumerations.md
566
+ [ union ] : items/unions.md
567
+ [ functions ] : items/functions.md
568
+ [ expression ] : expressions.md
569
+ [ expression statement ] : statements.md #expression-statements
570
+ [ call expression ] : expressions/call-expr.md
571
+ [ block expression ] : expressions/block-expr.md
572
+ [ block expressions ] : expressions/block-expr.md
573
+ [ `Drop` ] : special-types-and-traits.md #drop
574
+ [ let statement ] : statements.md #let-statements
575
575
[ unstable book plugin ] : ../unstable-book/language-features/plugin.html#lint-plugins
576
- [ zero-variant enum ] : items/enumerations.html #zero-variant-enums
576
+ [ zero-variant enum ] : items/enumerations.md #zero-variant-enums
577
577
[ ECMA-334 ] : https://www.ecma-international.org/publications/standards/Ecma-334.htm
578
578
[ ECMA-335 ] : https://www.ecma-international.org/publications/standards/Ecma-335.htm
579
- [ item declarations ] : items.html
580
- [ generics ] : items/generics.html
581
- [ implementations ] : items/implementations.html
582
- [ modules ] : items/modules.html
583
- [ statements ] : statements.html
584
- [ match expressions ] : expressions/match-expr.html
585
- [ external blocks ] : items/external-blocks.html
586
- [ items ] : items.html
587
- [ attribute macro ] : procedural-macros.html #attribute-macros
588
- [ function-like macro ] : procedural-macros.html #function-like-procedural-macros
589
- [ conditional compilation ] : conditional-compilation.html
590
- [ derive mode macro ] : procedural-macros.html #derive-mode-macros
591
- [ trait ] : items/traits.html
592
- [ main ] : crates-and-source-files.html
579
+ [ item declarations ] : items.md
580
+ [ generics ] : items/generics.md
581
+ [ implementations ] : items/implementations.md
582
+ [ modules ] : items/modules.md
583
+ [ statements ] : statements.md
584
+ [ match expressions ] : expressions/match-expr.md
585
+ [ external blocks ] : items/external-blocks.md
586
+ [ items ] : items.md
587
+ [ attribute macro ] : procedural-macros.md #attribute-macros
588
+ [ function-like macro ] : procedural-macros.md #function-like-procedural-macros
589
+ [ conditional compilation ] : conditional-compilation.md
590
+ [ derive mode macro ] : procedural-macros.md #derive-mode-macros
591
+ [ trait ] : items/traits.md
592
+ [ main ] : crates-and-source-files.md
593
593
[ `Termination` ] : ../std/process/trait.Termination.html
594
- [ where clause ] : items/where-clauses.html
595
- [ trait or lifetime bounds ] : trait-bounds.html
596
- [ Expression Attributes ] : expressions.html #expression-attributes
594
+ [ where clause ] : items/where-clauses.md
595
+ [ trait or lifetime bounds ] : trait-bounds.md
596
+ [ Expression Attributes ] : expressions.md #expression-attributes
0 commit comments