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
This commit is contained in:
Simon Sapin 2019-11-12 22:08:27 +01:00
parent b9cdf9ebda
commit 091feba0ba
3 changed files with 5 additions and 5 deletions

View file

@ -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;