diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-11-15 17:07:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-15 17:07:13 -0500 |
commit | d92f705573ac26fb8e16abc18d7d19e1fb384715 (patch) | |
tree | 7072475f19a837d6395acfc23061029eeb7619d2 /components/script/dom/documentorshadowroot.rs | |
parent | b9cdf9ebda07411c4c172e945599584edc5ba474 (diff) | |
parent | bea73951db5a758f78842a0056daccba9d89a9c0 (diff) | |
download | servo-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/dom/documentorshadowroot.rs')
-rw-r--r-- | components/script/dom/documentorshadowroot.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/documentorshadowroot.rs b/components/script/dom/documentorshadowroot.rs index 594801584c8..724ea11da8c 100644 --- a/components/script/dom/documentorshadowroot.rs +++ b/components/script/dom/documentorshadowroot.rs @@ -28,7 +28,7 @@ use style::shared_lock::{SharedRwLock as StyleSharedRwLock, SharedRwLockReadGuar use style::stylesheets::{CssRule, Origin, Stylesheet}; #[derive(Clone, JSTraceable, MallocSizeOf)] -#[must_root] +#[unrooted_must_root_lint::must_root] pub struct StyleSheetInDocument { #[ignore_malloc_size_of = "Arc"] pub sheet: Arc<Stylesheet>, @@ -76,7 +76,7 @@ impl ::style::stylesheets::StylesheetInDocument for StyleSheetInDocument { } // https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-the-documentorshadowroot-mixin -#[must_root] +#[unrooted_must_root_lint::must_root] #[derive(JSTraceable, MallocSizeOf)] pub struct DocumentOrShadowRoot { window: Dom<Window>, |