diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-11-12 22:08:27 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-11-15 16:46:50 +0100 |
commit | 091feba0ba817709927d1c407f4eb19dc84e57f3 (patch) | |
tree | aaa143654332c5e36386a316e8036eef278d495c /components/script_plugins/lib.rs | |
parent | b9cdf9ebda07411c4c172e945599584edc5ba474 (diff) | |
download | servo-091feba0ba817709927d1c407f4eb19dc84e57f3.tar.gz servo-091feba0ba817709927d1c407f4eb19dc84e57f3.zip |
Use `#![register_attr(…)]` instead of `Registry::register_attribute`
CC https://github.com/rust-lang/rust/pull/66344, https://github.com/rust-lang/rust/issues/66080
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r-- | components/script_plugins/lib.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index 740ae9f35ad..d00852b46b5 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -30,7 +30,6 @@ use rustc::hir::{self, ExprKind, HirId}; use rustc::lint::{LateContext, LateLintPass, LintContext, LintPass}; use rustc::ty; use rustc_driver::plugin::Registry; -use syntax::feature_gate::AttributeType::Whitelisted; use syntax::source_map; use syntax::source_map::{ExpnKind, MacroKind, Span}; use syntax::symbol::sym; @@ -44,9 +43,6 @@ pub fn plugin_registrar(reg: &mut Registry) { fn registrar(reg: &mut Registry) { let symbols = Symbols::new(); - reg.register_attribute(symbols.allow_unrooted_interior, Whitelisted); - reg.register_attribute(symbols.allow_unrooted_in_rc, Whitelisted); - reg.register_attribute(symbols.must_root, Whitelisted); reg.lint_store.register_lints(&[&UNROOTED_MUST_ROOT]); reg.lint_store .register_late_pass(move || Box::new(UnrootedPass::new(symbols.clone()))); |