diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-11-12 22:16:08 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-11-15 17:24:42 +0100 |
commit | bea73951db5a758f78842a0056daccba9d89a9c0 (patch) | |
tree | 7072475f19a837d6395acfc23061029eeb7619d2 /components/script/canvas_state.rs | |
parent | 091feba0ba817709927d1c407f4eb19dc84e57f3 (diff) | |
download | servo-bea73951db5a758f78842a0056daccba9d89a9c0.tar.gz servo-bea73951db5a758f78842a0056daccba9d89a9c0.zip |
Use `#![register_tool]` instead of `#![register_attr]`
CC https://github.com/rust-lang/rust/issues/66079
Diffstat (limited to 'components/script/canvas_state.rs')
-rw-r--r-- | components/script/canvas_state.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/canvas_state.rs b/components/script/canvas_state.rs index 4b47308fa46..76fd9d12caf 100644 --- a/components/script/canvas_state.rs +++ b/components/script/canvas_state.rs @@ -53,7 +53,7 @@ use std::fmt; use std::str::FromStr; use std::sync::Arc; -#[must_root] +#[unrooted_must_root_lint::must_root] #[derive(Clone, JSTraceable, MallocSizeOf)] #[allow(dead_code)] pub(crate) enum CanvasFillOrStrokeStyle { @@ -62,7 +62,7 @@ pub(crate) enum CanvasFillOrStrokeStyle { Pattern(Dom<CanvasPattern>), } -#[must_root] +#[unrooted_must_root_lint::must_root] #[derive(Clone, JSTraceable, MallocSizeOf)] pub(crate) struct CanvasContextState { global_alpha: f64, @@ -103,7 +103,7 @@ impl CanvasContextState { } } -#[must_root] +#[unrooted_must_root_lint::must_root] #[derive(JSTraceable, MallocSizeOf)] pub(crate) struct CanvasState { #[ignore_malloc_size_of = "Defined in ipc-channel"] |