Skip to content

Commit 605fe07

Browse files
steveklabnikManishearth
authored andcommitted
Get linkchecker clean
This affects the book, some missed things in the reference, the grammar, and the standard library. Whew!
1 parent 57855ce commit 605fe07

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

src/attributes.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type int8_t = i8;
4646
## Crate-only attributes
4747

4848
- `crate_name` - specify the crate's crate name.
49-
- `crate_type` - see [linkage](#linkage).
49+
- `crate_type` - see [linkage](linkage.html).
5050
- `feature` - see [compiler features](#compiler-features).
5151
- `no_builtins` - disable optimizing certain code patterns to invocations of
5252
library functions that are assumed to exist
@@ -106,7 +106,7 @@ On an `extern` block, the following attributes are interpreted:
106106
- `link` - indicate that a native library should be linked to for the
107107
declarations in this block to be linked correctly. `link` supports an optional
108108
`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
110110
examples: `#[link(name = "readline")]` and
111111
`#[link(name = "CoreFoundation", kind = "framework")]`.
112112
- `linked_from` - indicates what native library this block of FFI items is
@@ -149,7 +149,7 @@ On `struct`s:
149149
list of names `#[macro_use(foo, bar)]` restricts the import to just those
150150
macros named. The `extern crate` must appear at the crate root, not inside
151151
`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).
153153

154154
- `macro_reexport` on an `extern crate` — re-export the named macros.
155155

@@ -159,7 +159,7 @@ On `struct`s:
159159
link it into the output.
160160

161161
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
163163
macro scope.
164164

165165
## Miscellaneous attributes
@@ -317,7 +317,8 @@ For any lint check `C`:
317317

318318
The lint checks supported by the compiler can be found via `rustc -W help`,
319319
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.
321322

322323
```{.ignore}
323324
pub mod m1 {
@@ -442,7 +443,7 @@ impl<T: PartialEq> PartialEq for Foo<T> {
442443
```
443444

444445
You can implement `derive` for your own type through [procedural
445-
macros](#procedural-macros).
446+
macros](procedural-macros.html).
446447

447448
### Compiler Features
448449

@@ -464,10 +465,10 @@ considered off, and using the features will result in a compiler error.
464465

465466
The currently implemented features of the reference compiler are:
466467

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.
471472

472473
* `slice_patterns` - OK, actually, slice patterns are just scary and
473474
completely unstable.

src/expressions.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ be copied if its type implements `Copy`. All others are moved.
8585

8686
## Literal expressions
8787

88-
A _literal expression_ consists of one of the [literal](tokens.md#literals) forms
88+
A _literal expression_ consists of one of the [literal](tokens.html#literals) forms
8989
described earlier. It directly describes a number, character, string, boolean
9090
value, or the unit value.
9191

@@ -124,19 +124,19 @@ comma:
124124
## Struct expressions
125125

126126
There are several forms of struct expressions. A _struct expression_
127-
consists of the [path](#paths) of a [struct item](items.html#structs), followed
127+
consists of the [path](paths.html) of a [struct item](items.html#structs), followed
128128
by a brace-enclosed list of zero or more comma-separated name-value pairs,
129129
providing the field values of a new instance of the struct. A field name can be
130130
any identifier, and is separated from its value expression by a colon. The
131131
location denoted by a struct field is mutable if and only if the enclosing
132132
struct is mutable.
133133

134-
A _tuple struct expression_ consists of the [path](#paths) of a [struct
134+
A _tuple struct expression_ consists of the [path](paths.html) of a [struct
135135
item](items.html#structs), followed by a parenthesized list of one or more
136136
comma-separated expressions (in other words, the path of a struct item followed
137137
by a tuple expression). The struct item must be a tuple struct item.
138138

139-
A _unit-like struct expression_ consists only of the [path](#paths) of a
139+
A _unit-like struct expression_ consists only of the [path](paths.html) of a
140140
[struct item](items.html#structs).
141141

142142
The following are examples of struct expressions:
@@ -217,7 +217,8 @@ A _method call_ consists of an expression followed by a single dot, an
217217
identifier, and a parenthesized expression-list. Method calls are resolved to
218218
methods on specific traits, either statically dispatching to a method if the
219219
exact `self`-type of the left-hand-side is known, or dynamically dispatching if
220-
the left-hand-side expression is an indirect [trait object](trait-objects.html).
220+
the left-hand-side expression is an indirect [trait
221+
object](types.html#trait-objects).
221222

222223
## Field expressions
223224

@@ -504,7 +505,7 @@ The `+`, `-`, `*`, `/`, `%`, `&`, `|`, `^`, `<<`, and `>>` operators may be
504505
composed with the `=` operator. The expression `lval OP= val` is equivalent to
505506
`lval = lval OP val`. For example, `x = x + 1` may be written as `x += 1`.
506507

507-
Any such expression always has the [`unit`](#tuple-types) type.
508+
Any such expression always has the [`unit`](types.html#tuple-types) type.
508509

509510
### Operator precedence
510511

src/identifiers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Or
1313
* The identifier is more than one character, `_` alone is not an identifier
1414
* The remaining characters have property `XID_continue`
1515

16-
that does _not_ occur in the set of [keywords][keywords].
16+
that does _not_ occur in the set of [keywords].
1717

1818
> **Note**: `XID_start` and `XID_continue` as character properties cover the
1919
> character ranges used to form the more familiar C and Java language-family
2020
> identifiers.
2121
22-
keywords: ../grammar.html#keywords
22+
[keywords]: ../grammar.html#keywords
2323
[^non_ascii_idents]: Non-ASCII characters in identifiers are currently feature
24-
gated. This is expected to improve soon.
24+
gated. This is expected to improve soon.

src/items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ nested set of [modules]. Every crate has a single "outermost"
55
anonymous module; all further items within the crate have [paths]
66
within the module tree of the crate.
77

8-
[modules]: modules.html
8+
[modules]: #modules
99
[paths]: paths.html
1010

1111
Items are entirely determined at compile-time, generally remain fixed during

0 commit comments

Comments
 (0)