]>
Commit | Line | Data |
---|---|---|
60c5eb7d XL |
1 | //! Infrastructure for compiler plugins. |
2 | //! | |
3 | //! Plugins are a deprecated way to extend the behavior of `rustc` in various ways. | |
4 | //! | |
5 | //! See the [`plugin` | |
6 | //! feature](https://doc.rust-lang.org/nightly/unstable-book/language-features/plugin.html) | |
7 | //! of the Unstable Book for some examples. | |
8 | ||
1b1a35ee | 9 | #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")] |
3dfed10e | 10 | #![recursion_limit = "256"] |
60c5eb7d | 11 | |
dfeec247 | 12 | use rustc_lint::LintStore; |
60c5eb7d | 13 | |
60c5eb7d XL |
14 | pub mod load; |
15 | ||
16 | /// Structure used to register plugins. | |
17 | /// | |
18 | /// A plugin registrar function takes an `&mut Registry` and should call | |
19 | /// methods to register its plugins. | |
20 | pub struct Registry<'a> { | |
21 | /// The `LintStore` allows plugins to register new lints. | |
22 | pub lint_store: &'a mut LintStore, | |
23 | } |