mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Use #![register_tool]
instead of #![register_attr]
CC https://github.com/rust-lang/rust/issues/66079
This commit is contained in:
parent
091feba0ba
commit
bea73951db
46 changed files with 129 additions and 105 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue