aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-11-15 17:07:13 -0500
committerGitHub <noreply@github.com>2019-11-15 17:07:13 -0500
commitd92f705573ac26fb8e16abc18d7d19e1fb384715 (patch)
tree7072475f19a837d6395acfc23061029eeb7619d2 /components/script/lib.rs
parentb9cdf9ebda07411c4c172e945599584edc5ba474 (diff)
parentbea73951db5a758f78842a0056daccba9d89a9c0 (diff)
downloadservo-d92f705573ac26fb8e16abc18d7d19e1fb384715.tar.gz
servo-d92f705573ac26fb8e16abc18d7d19e1fb384715.zip
Auto merge of #24750 - servo:register-tool, r=jdm
Use `#![register_tool]` instead of `Registry::register_attribute` CC https://github.com/rust-lang/rust/pull/66344, https://github.com/rust-lang/rust/issues/66079
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r--components/script/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs
index 87eec7cab02..deab92ea107 100644
--- a/components/script/lib.rs
+++ b/components/script/lib.rs
@@ -7,12 +7,14 @@
#![feature(drain_filter)]
#![feature(inner_deref)]
#![feature(plugin)]
+#![feature(register_tool)]
#![deny(unsafe_code)]
#![allow(non_snake_case)]
#![doc = "The script crate contains all matters DOM."]
#![cfg_attr(not(feature = "unrooted_must_root_lint"), allow(unknown_lints))]
#![allow(deprecated)] // FIXME: Can we make `allow` only apply to the `plugin` crate attribute?
#![plugin(script_plugins)]
+#![register_tool(unrooted_must_root_lint)]
#[macro_use]
extern crate bitflags;