aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-26 23:31:40 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-28 04:35:58 +0530
commit369a568264f8c9095681f2fee5c6bad03f312cbc (patch)
tree981a01b544e1c3f2a57fb003ade762093e981aa1 /components/script/dom/bindings/js.rs
parentdcb0a0eab629a5f77e306fdab94c14cc3559c100 (diff)
downloadservo-369a568264f8c9095681f2fee5c6bad03f312cbc.tar.gz
servo-369a568264f8c9095681f2fee5c6bad03f312cbc.zip
Make RootedVec/RootCollection #[no_move]; improve code (fixes #5737)
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 347f32a266e..a6dc495fc04 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -577,6 +577,7 @@ impl<T: Assignable<U>, U: Reflectable> TemporaryPushable<T> for Vec<JS<U>> {
///
/// See also [*Exact Stack Rooting - Storing a GCPointer on the CStack*]
/// (https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Internals/GC/Exact_Stack_Rooting).
+#[no_move]
pub struct RootCollection {
roots: UnsafeCell<RootedVec<*mut JSObject>>,
}