aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'components/plugins')
-rw-r--r--components/plugins/Cargo.toml3
-rw-r--r--components/plugins/lib.rs3
2 files changed, 6 insertions, 0 deletions
diff --git a/components/plugins/Cargo.toml b/components/plugins/Cargo.toml
index 38099fc5677..133bad303a5 100644
--- a/components/plugins/Cargo.toml
+++ b/components/plugins/Cargo.toml
@@ -7,3 +7,6 @@ authors = ["The Servo Project Developers"]
name = "plugins"
path = "lib.rs"
plugin = true
+
+[dependencies.tenacious]
+git = "https://github.com/Manishearth/rust-tenacious.git" \ No newline at end of file
diff --git a/components/plugins/lib.rs b/components/plugins/lib.rs
index 968676b5413..36045cec078 100644
--- a/components/plugins/lib.rs
+++ b/components/plugins/lib.rs
@@ -19,6 +19,8 @@ extern crate syntax;
#[macro_use]
extern crate rustc;
+extern crate tenacious;
+
use rustc::lint::LintPassObject;
use rustc::plugin::Registry;
use syntax::ext::base::{Decorator, Modifier};
@@ -48,4 +50,5 @@ pub fn plugin_registrar(reg: &mut Registry) {
reg.register_lint_pass(box lints::inheritance_integrity::InheritancePass as LintPassObject);
reg.register_lint_pass(box lints::str_to_string::StrToStringPass as LintPassObject);
reg.register_lint_pass(box lints::ban::BanPass as LintPassObject);
+ reg.register_lint_pass(box tenacious::TenaciousPass as LintPassObject);
}