aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/lib.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-09-24 21:25:41 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-09-24 21:25:41 +0530
commit95a4731c0eec0cfb2fb70af534757bc7ca63e407 (patch)
tree172cec252a697d693e9560d74883644092b4f67c /components/plugins/lib.rs
parentc7a575e79338c84652cc0d0cb2f85b1c438819b2 (diff)
parent6f6a62e9671cb562e0d29b82a2604ba44c0af6d0 (diff)
downloadservo-95a4731c0eec0cfb2fb70af534757bc7ca63e407.tar.gz
servo-95a4731c0eec0cfb2fb70af534757bc7ca63e407.zip
Merge pull request #3468 from Manishearth/jstraceable
Replace our usage our Encodable with JSTraceable; r=jdm
Diffstat (limited to 'components/plugins/lib.rs')
-rw-r--r--components/plugins/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/plugins/lib.rs b/components/plugins/lib.rs
index 3247ad383ed..741a82ee045 100644
--- a/components/plugins/lib.rs
+++ b/components/plugins/lib.rs
@@ -6,8 +6,6 @@
#![deny(unused_imports, unused_variable)]
-
-
#[phase(plugin,link)]
extern crate syntax;
#[phase(plugin, link)]
@@ -17,14 +15,18 @@ extern crate sync;
use rustc::lint::LintPassObject;
use rustc::plugin::Registry;
+use syntax::ext::base::ItemDecorator;
+
+use syntax::parse::token::intern;
mod lints;
mod macros;
-
+mod jstraceable;
#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
reg.register_lint_pass(box lints::TransmutePass as LintPassObject);
reg.register_lint_pass(box lints::UnrootedPass as LintPassObject);
+ reg.register_syntax_extension(intern("jstraceable"), ItemDecorator(box jstraceable::expand_jstraceable))
}