get linkcheck clean
This commit is contained in:
parent
5f325e918d
commit
06e311b66a
|
@ -1,4 +1,4 @@
|
||||||
% The (old) Rust Compiler Plugins Guide
|
% The (old) Rust Compiler Plugins Guide
|
||||||
|
|
||||||
This content has moved into
|
This content has moved into
|
||||||
[the Rust Programming Language book](book/compiler-plugins.html).
|
[the Unstable Book](unstable-book/plugin.html).
|
||||||
|
|
|
@ -317,7 +317,7 @@ For any lint check `C`:
|
||||||
|
|
||||||
The lint checks supported by the compiler can be found via `rustc -W help`,
|
The lint checks supported by the compiler can be found via `rustc -W help`,
|
||||||
along with their default settings. [Compiler
|
along with their default settings. [Compiler
|
||||||
plugins](../book/compiler-plugins.html#lint-plugins) can provide additional
|
plugins](../unstable-book/plugin.html#lint-plugins) can provide additional
|
||||||
lint checks.
|
lint checks.
|
||||||
|
|
||||||
```{.ignore}
|
```{.ignore}
|
||||||
|
|
|
@ -14,4 +14,4 @@ And one unstable way: [compiler plugins].
|
||||||
|
|
||||||
[Macros]: ../book/macros.html
|
[Macros]: ../book/macros.html
|
||||||
[Procedural Macros]: ../book/procedural-macros.html
|
[Procedural Macros]: ../book/procedural-macros.html
|
||||||
[compiler plugins]: ../book/compiler-plugins.html
|
[compiler plugins]: ../unstable-book/plugin.html
|
||||||
|
|
|
@ -129,9 +129,9 @@ The advantages over a simple `fn(&str) -> u32` are:
|
||||||
a way to define new literal syntax for any data type.
|
a way to define new literal syntax for any data type.
|
||||||
|
|
||||||
In addition to procedural macros, you can define new
|
In addition to procedural macros, you can define new
|
||||||
[`derive`](../reference.html#derive)-like attributes and other kinds of
|
[`derive`](../reference/attributes.html#derive)-like attributes and other kinds
|
||||||
extensions. See `Registry::register_syntax_extension` and the `SyntaxExtension`
|
of extensions. See `Registry::register_syntax_extension` and the
|
||||||
enum. For a more involved macro example, see
|
`SyntaxExtension` enum. For a more involved macro example, see
|
||||||
[`regex_macros`](https://github.com/rust-lang/regex/blob/master/regex_macros/src/lib.rs).
|
[`regex_macros`](https://github.com/rust-lang/regex/blob/master/regex_macros/src/lib.rs).
|
||||||
|
|
||||||
|
|
||||||
|
@ -175,8 +175,8 @@ quasiquote as an ordinary plugin library.
|
||||||
# Lint plugins
|
# Lint plugins
|
||||||
|
|
||||||
Plugins can extend [Rust's lint
|
Plugins can extend [Rust's lint
|
||||||
infrastructure](../reference.html#lint-check-attributes) with additional checks for
|
infrastructure](../reference/attributes.html#lint-check-attributes) with
|
||||||
code style, safety, etc. Now let's write a plugin
|
additional checks for code style, safety, etc. Now let's write a plugin
|
||||||
[`lint_plugin_test.rs`](https://github.com/rust-lang/rust/blob/master/src/test/run-pass-fulldeps/auxiliary/lint_plugin_test.rs)
|
[`lint_plugin_test.rs`](https://github.com/rust-lang/rust/blob/master/src/test/run-pass-fulldeps/auxiliary/lint_plugin_test.rs)
|
||||||
that warns about any item named `lintme`.
|
that warns about any item named `lintme`.
|
||||||
|
|
||||||
|
@ -254,9 +254,10 @@ mostly use the same infrastructure as lint plugins, and provide examples of how
|
||||||
to access type information.
|
to access type information.
|
||||||
|
|
||||||
Lints defined by plugins are controlled by the usual [attributes and compiler
|
Lints defined by plugins are controlled by the usual [attributes and compiler
|
||||||
flags](../reference.html#lint-check-attributes), e.g. `#[allow(test_lint)]` or
|
flags](../reference/attributes.html#lint-check-attributes), e.g.
|
||||||
`-A test-lint`. These identifiers are derived from the first argument to
|
`#[allow(test_lint)]` or `-A test-lint`. These identifiers are derived from the
|
||||||
`declare_lint!`, with appropriate case and punctuation conversion.
|
first argument to `declare_lint!`, with appropriate case and punctuation
|
||||||
|
conversion.
|
||||||
|
|
||||||
You can run `rustc -W help foo.rs` to see a list of lints known to `rustc`,
|
You can run `rustc -W help foo.rs` to see a list of lints known to `rustc`,
|
||||||
including those provided by plugins loaded by `foo.rs`.
|
including those provided by plugins loaded by `foo.rs`.
|
||||||
|
|
Loading…
Reference in New Issue