diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-04-27 23:14:25 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-04-27 23:14:25 -0500 |
commit | d7987e43c944eb9b156bf3244c08fce4cb570db4 (patch) | |
tree | 981a01b544e1c3f2a57fb003ade762093e981aa1 /components/plugins/lib.rs | |
parent | 8ecb9d681c385995b082d67874fdfa7f1e929e1f (diff) | |
parent | 369a568264f8c9095681f2fee5c6bad03f312cbc (diff) | |
download | servo-d7987e43c944eb9b156bf3244c08fce4cb570db4.tar.gz servo-d7987e43c944eb9b156bf3244c08fce4cb570db4.zip |
Auto merge of #5855 - Manishearth:nomove, r=kmc,munksgaard
fixes #5724, #5737
uses https://github.com/Manishearth/rust-tenacious (can be moved in-tree if needed)
I can make it `Deny` by default too (I'll add a cargo feature to tenacious), though we might want it on
`Warn` until we get some mileage on it.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5855)
<!-- Reviewable:end -->
Diffstat (limited to 'components/plugins/lib.rs')
-rw-r--r-- | components/plugins/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |