aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/promise.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-11-12 22:16:08 +0100
committerSimon Sapin <simon.sapin@exyr.org>2019-11-15 17:24:42 +0100
commitbea73951db5a758f78842a0056daccba9d89a9c0 (patch)
tree7072475f19a837d6395acfc23061029eeb7619d2 /components/script/dom/promise.rs
parent091feba0ba817709927d1c407f4eb19dc84e57f3 (diff)
downloadservo-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/dom/promise.rs')
-rw-r--r--components/script/dom/promise.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/promise.rs b/components/script/dom/promise.rs
index b101c449348..d2e209b98dd 100644
--- a/components/script/dom/promise.rs
+++ b/components/script/dom/promise.rs
@@ -37,7 +37,7 @@ use std::ptr;
use std::rc::Rc;
#[dom_struct]
-#[allow_unrooted_in_rc]
+#[unrooted_must_root_lint::allow_unrooted_in_rc]
pub struct Promise {
reflector: Reflector,
/// Since Promise values are natively reference counted without the knowledge of