1 //! Infrastructure for compiler plugins.
3 //! Plugins are a deprecated way to extend the behavior of `rustc` in various ways.
6 //! feature](https://doc.rust-lang.org/nightly/unstable-book/language-features/plugin.html)
7 //! of the Unstable Book for some examples.
9 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
10 #![recursion_limit = "256"]
11 #![deny(rustc::untranslatable_diagnostic)]
12 #![deny(rustc::diagnostic_outside_of_impl)]
14 use rustc_lint::LintStore;
19 /// Structure used to register plugins.
21 /// A plugin registrar function takes an `&mut Registry` and should call
22 /// methods to register its plugins.
23 pub struct Registry<'a> {
24 /// The `LintStore` allows plugins to register new lints.
25 pub lint_store: &'a mut LintStore,