From 091feba0ba817709927d1c407f4eb19dc84e57f3 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 12 Nov 2019 22:08:27 +0100 Subject: =?UTF-8?q?Use=20`#![register=5Fattr(=E2=80=A6)]`=20instead=20of?= =?UTF-8?q?=20`Registry::register=5Fattribute`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC https://github.com/rust-lang/rust/pull/66344, https://github.com/rust-lang/rust/issues/66080 --- components/script/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'components/script/lib.rs') diff --git a/components/script/lib.rs b/components/script/lib.rs index 87eec7cab02..2dd6094c412 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -7,12 +7,16 @@ #![feature(drain_filter)] #![feature(inner_deref)] #![feature(plugin)] +#![feature(register_attr)] #![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_attr(allow_unrooted_interior)] +#![register_attr(allow_unrooted_in_rc)] +#![register_attr(must_root)] #[macro_use] extern crate bitflags; -- cgit v1.2.3 From bea73951db5a758f78842a0056daccba9d89a9c0 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 12 Nov 2019 22:16:08 +0100 Subject: Use `#![register_tool]` instead of `#![register_attr]` CC https://github.com/rust-lang/rust/issues/66079 --- components/script/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'components/script/lib.rs') diff --git a/components/script/lib.rs b/components/script/lib.rs index 2dd6094c412..deab92ea107 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -7,16 +7,14 @@ #![feature(drain_filter)] #![feature(inner_deref)] #![feature(plugin)] -#![feature(register_attr)] +#![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_attr(allow_unrooted_interior)] -#![register_attr(allow_unrooted_in_rc)] -#![register_attr(must_root)] +#![register_tool(unrooted_must_root_lint)] #[macro_use] extern crate bitflags; -- cgit v1.2.3