@@ -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
131131In 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
177177Plugins 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 )
181181that warns about any item named ` lintme ` .
182182
@@ -254,9 +254,10 @@ mostly use the same infrastructure as lint plugins, and provide examples of how
254254to access type information.
255255
256256Lints 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
261262You can run ` rustc -W help foo.rs ` to see a list of lints known to ` rustc ` ,
262263including those provided by plugins loaded by ` foo.rs ` .
0 commit comments