diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2016-02-26 17:01:51 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-04-14 15:35:28 +0200 |
commit | 6889f37d9ed1b147146fa1461ed8d9b1d151745c (patch) | |
tree | de5760262a46742ee42b95b022051f401a6e4810 /components/plugins/lib.rs | |
parent | 87d5424d4d5eb10f91ddb6bfaf6ab1eba2cd49b3 (diff) | |
download | servo-6889f37d9ed1b147146fa1461ed8d9b1d151745c.tar.gz servo-6889f37d9ed1b147146fa1461ed8d9b1d151745c.zip |
Remove the url! plugin.
In rust-url 1.0 the `Url` struct is going to have private fields, and there
is no way to to create an aribitrary one without going through the parser.
The plugin never had a clear demonstrated performance benefit,
it was made mostly because it was possible and relatively easy at the time.
Diffstat (limited to 'components/plugins/lib.rs')
-rw-r--r-- | components/plugins/lib.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/components/plugins/lib.rs b/components/plugins/lib.rs index c4e21c0ad4e..7e982bcb9e4 100644 --- a/components/plugins/lib.rs +++ b/components/plugins/lib.rs @@ -28,8 +28,6 @@ extern crate syntax; extern crate syntax_ext; extern crate tenacious; -extern crate url; - use rustc_plugin::Registry; use syntax::ext::base::*; use syntax::feature_gate::AttributeType::Whitelisted; @@ -41,8 +39,6 @@ pub mod jstraceable; pub mod lints; /// Autogenerates implementations of Reflectable on DOM structs pub mod reflector; -/// The `url!` plugin. -mod url_plugin; /// Utilities for writing plugins pub mod utils; @@ -51,7 +47,6 @@ pub fn plugin_registrar(reg: &mut Registry) { reg.register_syntax_extension(intern("dom_struct"), MultiModifier(box jstraceable::expand_dom_struct)); reg.register_syntax_extension(intern("derive_JSTraceable"), MultiDecorator(box jstraceable::expand_jstraceable)); reg.register_syntax_extension(intern("_generate_reflector"), MultiDecorator(box reflector::expand_reflector)); - reg.register_macro("url", url_plugin::expand_url); reg.register_late_lint_pass(box lints::transmute_type::TransmutePass); reg.register_late_lint_pass(box lints::unrooted_must_root::UnrootedPass::new()); reg.register_late_lint_pass(box lints::privatize::PrivatizePass); |