]>
git.proxmox.com Git - rustc.git/blob - src/librustc_plugin_impl/lib.rs
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/")]
13 use rustc
::lint
::LintStore
;
18 /// Structure used to register plugins.
20 /// A plugin registrar function takes an `&mut Registry` and should call
21 /// methods to register its plugins.
22 pub struct Registry
<'a
> {
23 /// The `LintStore` allows plugins to register new lints.
24 pub lint_store
: &'a
mut LintStore
,