mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add the rust-tenacious move-protection lint, use it for Root<T>
(fixes #5724)
This commit is contained in:
parent
8ecb9d681c
commit
63714ebc5f
5 changed files with 23 additions and 0 deletions
|
@ -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"
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue