@@ -46,7 +46,7 @@ type int8_t = i8;
46
46
## Crate-only attributes
47
47
48
48
- ` crate_name ` - specify the crate's crate name.
49
- - ` crate_type ` - see [ linkage] ( # linkage) .
49
+ - ` crate_type ` - see [ linkage] ( linkage.html ) .
50
50
- ` feature ` - see [ compiler features] ( #compiler-features ) .
51
51
- ` no_builtins ` - disable optimizing certain code patterns to invocations of
52
52
library functions that are assumed to exist
@@ -106,7 +106,7 @@ On an `extern` block, the following attributes are interpreted:
106
106
- ` link ` - indicate that a native library should be linked to for the
107
107
declarations in this block to be linked correctly. ` link ` supports an optional
108
108
` kind ` key with three possible values: ` dylib ` , ` static ` , and ` framework ` . See
109
- [ external blocks] ( #external-blocks ) for more about external blocks. Two
109
+ [ external blocks] ( items.html #external-blocks) for more about external blocks. Two
110
110
examples: ` #[link(name = "readline")] ` and
111
111
` #[link(name = "CoreFoundation", kind = "framework")] ` .
112
112
- ` linked_from ` - indicates what native library this block of FFI items is
@@ -149,7 +149,7 @@ On `struct`s:
149
149
list of names ` #[macro_use(foo, bar)] ` restricts the import to just those
150
150
macros named. The ` extern crate ` must appear at the crate root, not inside
151
151
` mod ` , which ensures proper function of the [ ` $crate ` macro
152
- variable] ( book/macros.html#The%20variable%20%24crate ) .
152
+ variable] ( ../ book/macros.html#the-variable-crate ) .
153
153
154
154
- ` macro_reexport ` on an ` extern crate ` — re-export the named macros.
155
155
@@ -159,7 +159,7 @@ On `struct`s:
159
159
link it into the output.
160
160
161
161
See the [ macros section of the
162
- book] ( book/macros.html#Scoping%20and%20macro%20import%2Fexport ) for more information on
162
+ book] ( ../ book/macros.html#scoping-and-macro-importexport ) for more information on
163
163
macro scope.
164
164
165
165
## Miscellaneous attributes
@@ -317,7 +317,8 @@ For any lint check `C`:
317
317
318
318
The lint checks supported by the compiler can be found via ` rustc -W help ` ,
319
319
along with their default settings. [ Compiler
320
- plugins] ( book/compiler-plugins.html#lint-plugins ) can provide additional lint checks.
320
+ plugins] ( ../book/compiler-plugins.html#lint-plugins ) can provide additional
321
+ lint checks.
321
322
322
323
``` {.ignore}
323
324
pub mod m1 {
@@ -442,7 +443,7 @@ impl<T: PartialEq> PartialEq for Foo<T> {
442
443
```
443
444
444
445
You can implement ` derive ` for your own type through [ procedural
445
- macros] ( # procedural-macros) .
446
+ macros] ( procedural-macros.html ) .
446
447
447
448
### Compiler Features
448
449
@@ -464,10 +465,10 @@ considered off, and using the features will result in a compiler error.
464
465
465
466
The currently implemented features of the reference compiler are:
466
467
467
- * ` advanced_slice_patterns ` - See the [ match expressions ] ( #match-expressions )
468
- section for discussion; the exact semantics of
469
- slice patterns are subject to change, so some types
470
- are still unstable.
468
+ * ` advanced_slice_patterns ` - See the [ match
469
+ expressions ] ( expressions.html#match-expressions )
470
+ section for discussion; the exact semantics of
471
+ slice patterns are subject to change, so some types are still unstable.
471
472
472
473
* ` slice_patterns ` - OK, actually, slice patterns are just scary and
473
474
completely unstable.
0 commit comments