@@ -129,9 +129,9 @@ The advantages over a simple `fn(&str) -> u32` are:
129
129
a way to define new literal syntax for any data type.
130
130
131
131
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
135
135
[ ` regex_macros ` ] ( https://github.com/rust-lang/regex/blob/master/regex_macros/src/lib.rs ) .
136
136
137
137
@@ -175,8 +175,8 @@ quasiquote as an ordinary plugin library.
175
175
# Lint plugins
176
176
177
177
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
180
180
[ ` lint_plugin_test.rs ` ] ( https://github.com/rust-lang/rust/blob/master/src/test/run-pass-fulldeps/auxiliary/lint_plugin_test.rs )
181
181
that warns about any item named ` lintme ` .
182
182
@@ -254,9 +254,10 @@ mostly use the same infrastructure as lint plugins, and provide examples of how
254
254
to access type information.
255
255
256
256
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.
260
261
261
262
You can run ` rustc -W help foo.rs ` to see a list of lints known to ` rustc ` ,
262
263
including those provided by plugins loaded by ` foo.rs ` .
0 commit comments