aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-26 22:54:34 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-28 04:20:40 +0530
commit63714ebc5f41015876f3e3416a82eb99beec5e6b (patch)
treeb11b6bff820207c636d9b3b14287baa9035f725a /components/script/dom/bindings/js.rs
parent8ecb9d681c385995b082d67874fdfa7f1e929e1f (diff)
downloadservo-63714ebc5f41015876f3e3416a82eb99beec5e6b.tar.gz
servo-63714ebc5f41015876f3e3416a82eb99beec5e6b.zip
Add the rust-tenacious move-protection lint, use it for `Root<T>` (fixes #5724)
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r--components/script/dom/bindings/js.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index 80eb1317f32..347f32a266e 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -626,6 +626,7 @@ impl RootCollection {
/// for the same JS value. `Root`s cannot outlive the associated
/// `RootCollection` object. Attempts to transfer ownership of a `Root` via
/// moving will trigger dynamic unrooting failures due to incorrect ordering.
+#[no_move]
pub struct Root<T> {
/// List that ensures correct dynamic root ordering
root_list: &'static RootCollection,