mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +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
|
@ -6406,7 +6406,7 @@ class CGDictionary(CGThing):
|
|||
derive = ["JSTraceable"]
|
||||
mustRoot = ""
|
||||
if self.membersNeedTracing():
|
||||
mustRoot = "#[must_root]\n"
|
||||
mustRoot = "#[unrooted_must_root_lint::must_root]\n"
|
||||
derive += ["Default"]
|
||||
|
||||
return (string.Template(
|
||||
|
@ -6927,7 +6927,8 @@ class CGCallback(CGClass):
|
|||
bases=[ClassBase(baseName)],
|
||||
constructors=self.getConstructors(),
|
||||
methods=realMethods,
|
||||
decorators="#[derive(JSTraceable, PartialEq)]\n#[allow_unrooted_interior]")
|
||||
decorators="#[derive(JSTraceable, PartialEq)]\n"
|
||||
"#[unrooted_must_root_lint::allow_unrooted_interior]")
|
||||
|
||||
def getConstructors(self):
|
||||
return [ClassConstructor(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue