@@ -8,7 +8,7 @@ The tracking issue for this feature is: [#29597]
88This feature is part of "compiler plugins." It will often be used with the
99[ ` plugin_registrar ` ] and ` rustc_private ` features.
1010
11- [ `plugin_registrar` ] : language-features/ plugin-registrar.html
11+ [ `plugin_registrar` ] : plugin-registrar.md
1212
1313------------------------
1414
@@ -39,7 +39,7 @@ of a library.
3939
4040Plugins can extend Rust's syntax in various ways. One kind of syntax extension
4141is the procedural macro. These are invoked the same way as [ ordinary
42- macros] ( ../book/macros.html ) , but the expansion is performed by arbitrary Rust
42+ macros] ( ../../ book/macros.md ) , but the expansion is performed by arbitrary Rust
4343code that manipulates syntax trees at
4444compile time.
4545
@@ -130,7 +130,7 @@ The advantages over a simple `fn(&str) -> u32` are:
130130 a way to define new literal syntax for any data type.
131131
132132In addition to procedural macros, you can define new
133- [ ` derive ` ] ( ../reference/attributes/derive.html ) -like attributes and other kinds
133+ [ ` derive ` ] ( ../../ reference/attributes/derive.md ) -like attributes and other kinds
134134of extensions. See ` Registry::register_syntax_extension ` and the
135135` SyntaxExtension ` enum. For a more involved macro example, see
136136[ ` regex_macros ` ] ( https://github.com/rust-lang/regex/blob/master/regex_macros/src/lib.rs ) .
@@ -174,7 +174,7 @@ quasiquote as an ordinary plugin library.
174174# Lint plugins
175175
176176Plugins can extend [ Rust's lint
177- infrastructure] ( ../reference/attributes/diagnostics.html #lint-check-attributes ) with
177+ infrastructure] ( ../../ reference/attributes/diagnostics.md #lint-check-attributes ) with
178178additional checks for code style, safety, etc. Now let's write a plugin
179179[ ` lint_plugin_test.rs ` ] ( https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/auxiliary/lint_plugin_test.rs )
180180that warns about any item named ` lintme ` .
@@ -253,7 +253,7 @@ mostly use the same infrastructure as lint plugins, and provide examples of how
253253to access type information.
254254
255255Lints defined by plugins are controlled by the usual [ attributes and compiler
256- flags] ( ../reference/attributes/diagnostics.html #lint-check-attributes ) , e.g.
256+ flags] ( ../../ reference/attributes/diagnostics.md #lint-check-attributes ) , e.g.
257257` #[allow(test_lint)] ` or ` -A test-lint ` . These identifiers are derived from the
258258first argument to ` declare_lint! ` , with appropriate case and punctuation
259259conversion.
0 commit comments