]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_plugin_impl/lib.rs
Auto merge of #67886 - Centril:rustc_hir_canon_imports, r=nagisa
[rust.git] / src / librustc_plugin_impl / lib.rs
index f4e90b7b7da3d143394391c8393dba94fe5f272f..682d223f565de3f8ea27b5b55a4e18139bc541ee 100644 (file)
@@ -7,13 +7,18 @@
 //! of the Unstable Book for some examples.
 
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
-
 #![feature(nll)]
 
-#![recursion_limit="256"]
-
-pub use registry::Registry;
+use rustc::lint::LintStore;
 
-pub mod registry;
-pub mod load;
 pub mod build;
+pub mod load;
+
+/// Structure used to register plugins.
+///
+/// A plugin registrar function takes an `&mut Registry` and should call
+/// methods to register its plugins.
+pub struct Registry<'a> {
+    /// The `LintStore` allows plugins to register new lints.
+    pub lint_store: &'a mut LintStore,
+}