Skip to content

Commit 06e311b

Browse files
committed
get linkcheck clean
1 parent 5f325e9 commit 06e311b

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

Diff for: src/doc/guide-plugins.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
% The (old) Rust Compiler Plugins Guide
22

33
This content has moved into
4-
[the Rust Programming Language book](book/compiler-plugins.html).
4+
[the Unstable Book](unstable-book/plugin.html).

Diff for: src/doc/reference/src/attributes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ 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
320+
plugins](../unstable-book/plugin.html#lint-plugins) can provide additional
321321
lint checks.
322322

323323
```{.ignore}

Diff for: src/doc/reference/src/macros.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ And one unstable way: [compiler plugins].
1414

1515
[Macros]: ../book/macros.html
1616
[Procedural Macros]: ../book/procedural-macros.html
17-
[compiler plugins]: ../book/compiler-plugins.html
17+
[compiler plugins]: ../unstable-book/plugin.html

Diff for: src/doc/unstable-book/src/plugin.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ The advantages over a simple `fn(&str) -> u32` are:
129129
a way to define new literal syntax for any data type.
130130

131131
In addition to procedural macros, you can define new
132-
[`derive`](../reference.html#derive)-like attributes and other kinds of
133-
extensions. See `Registry::register_syntax_extension` and the `SyntaxExtension`
134-
enum. For a more involved macro example, see
132+
[`derive`](../reference/attributes.html#derive)-like attributes and other kinds
133+
of extensions. See `Registry::register_syntax_extension` and the
134+
`SyntaxExtension` enum. For a more involved macro example, see
135135
[`regex_macros`](https://github.com/rust-lang/regex/blob/master/regex_macros/src/lib.rs).
136136

137137

@@ -175,8 +175,8 @@ quasiquote as an ordinary plugin library.
175175
# Lint plugins
176176

177177
Plugins can extend [Rust's lint
178-
infrastructure](../reference.html#lint-check-attributes) with additional checks for
179-
code style, safety, etc. Now let's write a plugin
178+
infrastructure](../reference/attributes.html#lint-check-attributes) with
179+
additional checks for code style, safety, etc. Now let's write a plugin
180180
[`lint_plugin_test.rs`](https://github.com/rust-lang/rust/blob/master/src/test/run-pass-fulldeps/auxiliary/lint_plugin_test.rs)
181181
that warns about any item named `lintme`.
182182

@@ -254,9 +254,10 @@ mostly use the same infrastructure as lint plugins, and provide examples of how
254254
to access type information.
255255

256256
Lints defined by plugins are controlled by the usual [attributes and compiler
257-
flags](../reference.html#lint-check-attributes), e.g. `#[allow(test_lint)]` or
258-
`-A test-lint`. These identifiers are derived from the first argument to
259-
`declare_lint!`, with appropriate case and punctuation conversion.
257+
flags](../reference/attributes.html#lint-check-attributes), e.g.
258+
`#[allow(test_lint)]` or `-A test-lint`. These identifiers are derived from the
259+
first argument to `declare_lint!`, with appropriate case and punctuation
260+
conversion.
260261

261262
You can run `rustc -W help foo.rs` to see a list of lints known to `rustc`,
262263
including those provided by plugins loaded by `foo.rs`.

0 commit comments

Comments
 (0)