mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -13,7 +13,7 @@ use dom_struct::dom_struct;
|
|||
use std::cell::Cell;
|
||||
|
||||
#[derive(JSTraceable, MallocSizeOf)]
|
||||
#[must_root]
|
||||
#[unrooted_must_root_lint::must_root]
|
||||
pub enum NodeListType {
|
||||
Simple(Vec<Dom<Node>>),
|
||||
Children(ChildrenList),
|
||||
|
@ -119,7 +119,7 @@ impl NodeList {
|
|||
}
|
||||
|
||||
#[derive(JSTraceable, MallocSizeOf)]
|
||||
#[must_root]
|
||||
#[unrooted_must_root_lint::must_root]
|
||||
pub struct ChildrenList {
|
||||
node: Dom<Node>,
|
||||
#[ignore_malloc_size_of = "Defined in rust-mozjs"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue